简体   繁体   English

无法在Python中导入库

[英]Unable to import libraries in Python

Yesterday, I accidentally deleted the Path variable but I think I restored them. 昨天,我不小心删除了Path变量,但我想我恢复了它们。 I added Python path to it and I've got my python running through command prompt and also pip is working. 我向它添加了Python路径,并且我的python通过命令提示符运行,并且pip正常工作。 However, I'm unable to import new modules to Python shell. 但是,我无法将新模块导入Python Shell。 It comes up with the following error 它提出了以下错误

enter code here
File "<pyshell#1>", line 1, in <module>
import wxPython
ModuleNotFoundError: No module named 'wxPython'

Any suggestions as to what I'm missing? 关于我所缺少的任何建议吗? Maybe I didn't add the Path correctly? 也许我没有正确添加路径? here is what I have added 这是我添加的

%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
C:\Program Files\Common Files\Oracle\Java\javapath;
C:\Users\user1\AppData\Local\Programs\Python\Python36-32\Scripts;
C:\Users\user1\AppData\Local\Programs\Python\Python36-32;
C:\Users\user1\AppData\Local\Programs\Python

Also add C:\\Users\\<your user>\\AppData\\Local\\Programs\\Python\\Python36-32\\Libs; 还添加C:\\Users\\<your user>\\AppData\\Local\\Programs\\Python\\Python36-32\\Libs; to your path 到你的路

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

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