Script running in PyCharm but not from the command line

后端 未结 4 1201
孤城傲影
孤城傲影 2020-12-01 14:33

When I try to run my program from the PyCharm IDE everything works fine but if I type in Fedora:

python myScript.py

in a shell prompt I get

4条回答
  •  情书的邮戳
    2020-12-01 14:45

    You might have set some project dependency in Pycharm for module myDependency. You can access the same in Fedora by importing the module explicitly or by creating the egg of that module and installing it. This will then go to python site-packages from where you can refer this dependency.

提交回复
热议问题