Help! I have installed third-party libraries such as pandas on my computer, but I reported an error without this module when using python shell and pycharm

Let me be more specific. My computer is win7 64-bit and installed python3.5 (and I have also configured the environment variable of python, and I only installed this version of python, without installing python2.*), Anaconda3 has been installed, and third-party libraries such as pandas,sklearn,scipy have been installed through pip operation. As shown below:

clipboard.png

clipboard.png

clipboard.png
pycharmpython shell:ImportError: No module named "pandas"

clipboard.png

clipboard.png
jyputer:

clipboard.png
I encountered a similar situation the last time I used sklearn. Has anyone encountered this situation? Or does anyone know about this? I searched a lot of the Internet and there are no similar answers, most of them said that there is no installation of third-party libraries, but I installed, help God, thank you!

Mar.20,2021

if you download and install python 3 and Anaconda 3 from the python website, there are already two python versions on your computer.

if you have installed Anaconda 3, you don't need to install another python, to add the package conda install xxx , instead of using pip install xxx .


  1. if you have multiple versions locally, you first need to determine which version of python you installed. You can see
by using the following command
-sharp 
-sharp 3.52.7import
pip --version
  1. how to use
in pycharm

this you need to set the interpreter, of your pycharm is generally in the file "settings" Project Interpreter
. For example, the pip-related python you found above is 3.5. It should be OK to add this path in this interpreter
python-interpreter.html" rel=" nofollow noreferrer "> https://www.jetbrains.com/hel.

.
Menu