简体   繁体   English

未找到安装了 pip 的 python 模块

[英]python modules installed with pip not found

I searched for a lot of information but nothing helped me.我搜索了很多信息,但没有任何帮助。 So, basically every module installed in the python37\lib\site-packages is not importing.因此,基本上安装在 python37\lib\site-packages 中的每个模块都没有导入。 because this problem doesn't appear in PyCharm I just forgot about it and worked there, but now I need to use asciimatics that doesn't work good in PyCharm and I tried to solve it.因为这个问题没有出现在 PyCharm 我只是忘记了它并在那里工作,但现在我需要使用在 PyCharm 中效果不佳的 asciimatics,我试图解决它。

here is sys.path C:\Program Files\Python37\python37.zip C:\Program Files\Python37\DLLs C:\Program Files\Python37\lib C:\Program Files\Python37 C:\Program Files\Python37\lib\site-packages here is sys.path C:\Program Files\Python37\python37.zip C:\Program Files\Python37\DLLs C:\Program Files\Python37\lib C:\Program Files\Python37 C:\Program Files\Python37\lib \网站包

also here is a pip -V pip 20.1.1 from c:\python37\lib\site-packages\pip (python 3.7)这里还有一个 pip -V pip 20.1.1 来自 c:\python37\lib\site-packages\pip (python)

as I get it, everything should work but doesn't:'( I would really appreciate the help thanks.据我所知,一切都应该可以工作,但不能:'(我非常感谢您的帮助,谢谢。

EDIT: I should have used python instead of py.编辑:我应该使用 python 而不是 py。

I want to die just because I spent so much time on trying things but at the end its something that simple.我想死只是因为我花了很多时间在尝试事情上,但最后它就是这么简单。 (I thought about it thanks to the comment) (由于评论,我考虑了)

As I can't comment yet:因为我还不能评论:

I would recommend you using a venv or anaconda ( https://programwithus.com/learn-to-code/Pip-and-virtualenv-on-Windows/ ).我建议您使用 venv 或 anaconda ( https://programwithus.com/learn-to-code/Pip-and-virtualenv-on-Windows/ )。 When creating a project in Pycharm you can select it.在 Pycharm 中创建项目时,您可以 select 它。 It will then install all packages inside the venv and it should work然后它将在 venv 中安装所有软件包,它应该可以工作

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

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