简体   繁体   English

python包不会读取

[英]python package won't read

I need to use pandas, and similar package in my project.我需要在我的项目中使用熊猫和类似的包。 Since, I switched computer it has been a rough transition.从那以后,我换了电脑,这是一个艰难的过渡。 After I downloaded atom again the IDE I prefer.再次下载 atom 后,我更喜欢 IDE。 I can't get it to work, atom doesn't seem to be able to read pandas, however, pretty sure the terminal is able to (picture 1).我无法让它工作,atom 似乎无法读取熊猫,但是,很确定终端能够读取(图 1)。 "Pip 3 freeze" shows me all the package, including pandas. “Pip 3 freeze”向我展示了所有包,包括熊猫。 I tried uninstalling atom and package and downloading anaconda, hence the frustration.我尝试卸载 atom 和 package 并下载 anaconda,因此很沮丧。

Thank you for the help //Adil谢谢你的帮助//Adil

in the terminal I can read the package在终端我可以阅读包

when I import the package It won't read it.当我导入包时它不会读取它。

I solved it, after the advice I got from the guy above.在我从上面那个人那里得到建议之后,我解决了它。 I did some research, since, I had anaconda installed I needed to find the "path", to the installed version.我做了一些研究,因为我安装了 anaconda 我需要找到安装版本的“路径”。 Considering that I'm on a Mac, I opened the terminal (probably the same in windows)and wrote "where python", it gave my a path to "Anaconda python3".考虑到我在 Mac 上,我打开了终端(在 Windows 中可能相同)并写了“where python”,它为我提供了“Anaconda python3”的路径。 In atom, I -script option- set up profile- pasted the path.在原子中,我 - 脚本选项 - 设置配置文件 - 粘贴了路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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