简体   繁体   English

Pycharm Python路径

[英]Pycharm Python Path

I am having an issue importing a python path into pycharm. 我在将python路径导入pycharm时遇到问题。 I have tried adding the path I want to the following. 我尝试将所需的路径添加到以下内容。

Default Settings > Project Interpreters > Interpreter Path 默认设置>项目解释器>解释器路径

When I do this I see the correct path that I am trying to import from, but when I try to run from the console I still get an import error. 当我这样做时,我看到了我尝试从中导入的正确路径,但是当我尝试从控制台运行时,仍然出现导入错误。

Thanks 谢谢

我可以通过在pycharm中的控制台下添加新的PYTHONPATH和环境变量的正确路径来纠正此问题

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

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