Packages installed in Conda env does not show up in Pycharm - python

I'm struggling to understand why Pycharm is not recognizing OpenCV package installed via Conda.
Conda list command
Pycharm package list

I've noticed that a few times before as well but not as much lately. The first thing I would try is to upgrade to the latest version of PyCharm.
You may just want to peruse their forum if that doesn't help, but it sounds more like a bug to me.
PyCharm Support Forum

Related

VS code and virtual environment issues

I am trying to run a code in vs code in virtual env (python=3.9). and I have 2 questions:
1.just recently, the env that I used to work with this code all the time, does not recognize the python packages. I reinstalled the packages and the issue is not solved. I created a new env and installed the packages but it is the same.Any ideas how I can fix this?
Thanks in advance,
I searched for the issues and it seemed reinstalling keras helps, but it didn't for me
Ok thanks you all for your responses. I do not use virtualenv so I did not try that. That issue had happened because I had installed Xcode. I uninstalled it, and reinstalled vscode and created a new env and installed all the packages and the problem is solved.
You can also look in the lower righthand corner to check what version of Python you are using, you can also use cmd+P(Mac) or ctrl+P(Windows) and type > to pull up developer options

Installing Pipetorch in Spyder 5.3 Python 3.8.10

I have tried many times to install Pipetorch in Spyder 5.3 with Python 3.8.10, but it failed.
I have tried as well conda as pip commands, but it does not work. If I use %pip I get this:
Note: you may need to restart the kernel to use updated packages. C:\Users\szewa\AppData\Local\Programs\Spyder\Python\python.exe: No module named pip
If I use conda I get this:
`ValueError: The python kernel does not appear to be a conda environment. Please use ``%pip install instead.`
Can someone help me? I can find nothing on internet that works...
You seem to be confused about the differences between pip and conda. Anyhow, your Python installation is messed up now and only a restart will help now.
The easiest way to use Python together with the Spyder IDE is to install Anaconda and learn some conda basics: Getting started with conda.
If you really want to install Spyder with standard Python, follow the recipe from Spyder installation without Anaconda, but it seems to be tricky.

Problem with installing any package in Pycharm Community Edition 2019.3.3 64 bit

I am fairly new to the programming world so I downloaded the latest version of python (3.8.1) and and Pycharm as my IDE.
Recently I wanted to add some packages (for example numpy) but found out im not able to. For some reason it wont recognize my pip (in the cmd) but for some weird reason Pycharm shows that there is a version of it (19.0.3).
That doesnt makes sence since in the cmd I cant find a version of it and even when I try to upgrade it from pycharm it still shows a warning that I might have the wrong version of it (I know the latest is 20.0.2). Thus I am unable to install any python package whatsoever (from cmd or pycharm).
I have tried reseting my python installation and my pycharm's configuration but I havent made any progress. Are there any posible solutions for an amateur like me?
Thanks in advance.
Brother that is great progress. I had issues like yours too, first learn how to set up a virtual environment for your project. You can install any package there for your project which will not interfere with other projects. Next set your pycharm's base interpreter to that environments bin/python. Hopefully it will resolve your issues.

conda update crashes python

I'm trying to update/upgrade my Python with conda. I run the command:
conda update conda
but it crashes my Python:
Python has stopped working
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
My installation information is:
conda version : 4.5.2
conda-build version : 3.0.27
python version : 3.6.3.final.0
I googled the issue and got this github issue report. Unfortunately none of the solutions worked for me. I would appreciate if you could help me know what is the problem and how I can solve it.
I tried uninstalling and reinstalling conda and the problem disappeared temporarily. But then the issue happened again while I was trying to use matplotlib.
I experienced the exact same issue one a different machine when running conda update --all so either there is something wrong with conda or I'm making one mistake twice! (conda/python versions were exactly the same as above.)
I tried updating/upgrading all of the packages running the command in this post on admin-cmd. It took a long time to finish and the problem was still there.
There seemed to be issues with Qt. So I tried to uninstall and reinstall Qt and pyqt but it did not solve the problem either.
temporary workaround: I completely uninstalled Anaconda and installed stock Python. So far this has solved the problem both on my home and work computers.
Try conda update --all or if you're trying to update / upgrade specifically python then try conda update python. Faced such problem and it worked for me.
As was suggested by the mods, here I post my temporary solution. Considering that none of the other attempts (reinstalling Qt, Anaconda, updating with pip...) worked, I ended up uninstalling Anaconda and everything pythony and installed the stock / vanilla python from the official website. This has solved the issue so far. Please consider this is not a solution to the problem mentioned above but just to get the python working for the time being.

Switch from linux distro package manager to Anaconda

I am using openSUSE Leap 42.1 and do some data analysis work in python. Most of the python packages I use are available in the standard openSUSE repositories (e.g. obs://build.opensuse.org/devel:languages:python); however sometimes they aren't, whereas they are available in Anaconda. I would like to replace all of the python packages installed on my computer with those available through Anaconda.
Is it possible to just install Anaconda in parallel with the normal openSUSE packages or should I manually delete the packages I've installed? I know python is used heavily throughout the operating system so I probably don't want to deep clean the system of python before going the Anaconda route.
Has anyone done this before? I was unable to find any info on this on the Anaconda site, and I'm curious if there is a clean way to do this.
I read the anaconda documentation, and there is no evidence of anaconda packages replacing your openSUSE packages. There isn't a reason for it to do so. If I got it right, then Conda is very similar to ruby's gem and similar tools, which definitely don't replace the installed packages. I think you can feel free to install it next to your current packages. Also, you can specify the python and python package version in the anaconda envinroments, which is another thing which it allows you to do, so you can decide what you will use there. Note, I'm not a conda user, this is how I understood the docs. Hope this helps.

Categories

Resources