简体   繁体   中英

Why does Pycharm have orange files?

I am trying to import pandas, and I am getting errors because the file for pandas is orange. I looked up the error, and it says something about being deleted so I reinstalled but I am still getting an error. The errors are "no module named pandas" and "unused import statement." I am using python 2.7, pip 10.0.1,anaconda2,pandas 2.7.3

Can someone please help? I am new, and if you give step-by-step information it would be greatly appreciated

Are you sure you are using python env with pandas ? You can check more if you go to File->Settings->Project->Project Interpreter . From there, you can select python envs you have, install manually packages and so on.

Example of an interface:

项目口译员

With + sign, you can add some packages, just search them and click install.

With gear or cog icon you can add new python enviroment.

I think I had the same issue with the Pillow Module. Even if it was installed successfully, Pycharm wouldn't let me use it and actually in Extrernal LIbraries -> Lib , the file site-packages was orange. I just opened a new project and i checked the following as it is shown in the picture. I don't know how this works exactly , but when it works it works! XD

Check the Inherit global site-packages as it is shown in this picture. click 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM