Skip to content
Advertisement

Newbie Python, PyCharm and Anaconda issues

I’m a newbie following tutorials online. I’m having real troubles with PyCharm, Python and Anaconda. Two questions:

(1) when I ‘pip install x’ in CMD, they only seem to install in Anaconda site packages, not the Python one. Do I need to install in both to have access in both?

(2) I thought the reason to have Anaconda was because it came with packages like numpy. When I ‘import numpy’ in PyCharm in either Conda or Python39 environment, it says module not found and I have to install it anyway. What’s the point? I created a PyCharm Conda environment for that reason to use the packages?

I have C:…anaconda3, .scripts & .bin in system PATH variables, and C:…Python39 & .bin in user PATH variables.

I’d be really grateful if someone could clarify things. Thanks.

INPUT-> C:Userstk20blue>where pip
C:Userstk20blueanaconda3Scriptspip.exe
C:Userstk20blueAppDataLocalProgramsPythonPython39Scriptspip.exe

INPUT-> C:Userstk20blue>where python
C:Userstk20blueanaconda3python.exe
C:Userstk20blueAppDataLocalProgramsPythonPython39python.exe
C:Userstk20blueAppDataLocalMicrosoftWindowsAppspython.exe

INPUT-> C:Userstk20blue>where anaconda
C:Userstk20blueanaconda3Scriptsanaconda.exe

INPUT-> C:Userstk20blue>python --version
Python 3.8.5

INPUT -> C:Userstk20blue>py
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct  5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

Advertisement

Answer

You have two different python installs running at the same time. Anaconda is python. When you installed it after installing python, you essentially have two now. You should uninstall Python, and reinstall Anaconda.

I really like the Anaconda environment and you should really look at using conda to install most/all of your packages.

Here is a great tutorial: https://www.datacamp.com/community/tutorials/installing-anaconda-windows

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement