I have installed Spyder ide on my Mac machine. I already had python installed on my system and I had installed several libraries using pip install (like pandas, sklearn etc). Now when I try to import them in Spyder, they don't work. From python shell, I imported those libraries and added that path to PYTHONPATH in Spyder. But it is still not working. It seems it is searching in the /Applications/Spyder.app/Contents/Resources/ folder. But why wouldn't adding the existing python library path work? Can someone tell me what I am missing?
Related
I am trying to use the os package with PyCharm. When I follow the IDE's instructions, it doesn't appear on the list.
Why is it? And how else can I install it?
The Managing interpreter packages dialogue in PyCharm is used for installing packages from a repository, by default from pypi, see Available Packages.
The os module itself is part of The Python Standard Library and is already included in the Python interpreter that you have to create before any additional packages can be added to that interpreter.
I'm new to python trying to figure out some basics. I installed python 3.5 and then, to use jupyter notebook I installed anaconda distrubition. After that, I installed pycharm and started learning python.
After a few weeks, I was able to create a simple project which makes use of pyqt5. My project runs when I run it from pycharm itself, but when I try to run it with "python" command from cmd I get an error, stating that import from pyqt5 has failed. I did some research, and installed pyqt5 using pip, but the problem persists.
So what should I do to run my project without anaconda, using python 3.5?
It seems the anaconda distrubution and python itself were conflicting. Whenever I tried to install a module using pip (like pyqt5), it is installed under anaconda's python so when I try to invoke my own python from console i failed to use those installed modules. Hence there seems to be two option;
Delete all python related stuff from the computer and clean install python only - no anaconda. (I did this)
Or when installing a module, try using different pip's for the two python distrubutions on our computer. Check this link: Install a module using pip for specific python version
I've installed the new Anaconda 5.1. Before that, I had Anaconda 4 installed on my Windows 10 computer.
However I'm only able to use the preinstalled anaconda modules like numpy, matplotlib. If I install a new module for example over pip I can't use it, because my IDE (Visual Studio Code, pyCharm or Jupyter Notebook) will not find it. If I open the python console directly, I can import any module. The IDEs use the correct python path.
I've reinstalled anaconda a few times, but without any positive result.
Anyone with the same problem have a solution?
Not sure if I understood your question on 100%, but you can try this approach:
1) Open Anaconda prompt
2) Type conda install [packagename]
I am trying to import Python packages that I had previously installed but I keep getting this error when trying to import it
"ImportError: No module named gdal"
In the images attached (in the link :P) you can see that the package python-gdal and python-numpy are installed. I am also attaching the python output.
P.S = I am using Ubuntu and running python from the terminal.
You have possibly installed a non-Ubuntu version of Python - Anaconda - yet these packages are installed into the system Python. You should probably remove Anaconda, and/or run the system Python explicitly as /usr/bin/python.
I'd like to run any example .py script that uses matplotlib or pyqtgraph to see how it looks.
The problem is, none of the examples included with the Anaconda3-2.0.1-Windows-x86 install work. For example, I open Spyder3.4 that was installed with Anaconda, but when I open/run any of the .py files ( C:\Anaconda3\Lib\site-packages\matplotlib) nothing happens... No error message, nothing in the output tab.
I've installed this on a WinXp virtual machine that also has Qt5 creator/designer and PyQt installed. Is there any known conflict or path issues having PyQt installed alongside Anaconda?
How can I tell if Anaconda and its packages (namely pyqtgraph, matplotlib and pyqt) installed correctly?
You don't run the files in site-packages directly to use the modules. You should start a Python console in Spyder or the IPython notebook and use import matplotlib to access matplotlib.