我想在我的ubuntu机器(corgy工具)上运行用python编写的第三部分工具.
但是我不知道如何在Python路径中添加其他模块.
cat doc/download.rst
There is currently no setup.py, so you need to manually add
the download directory to your PYTHON_PATH environment variable.
Run Code Online (Sandbox Code Playgroud)
如何将目录添加到PYTHON_PATH?
我试过了:
export PYTHON_PATH=/home/user/directory:$PYTHON_PATH && source .bashrc
export PATH=/home/user/directory:$PATH && source .bashrc
python
import sys
sys.path.append("/home/user/directory/")
但是,当我尝试运行此工具时,我得到:
Traceback (most recent call last):
File "examples/dotbracket_to_bulge_graph.py", line 4, in <module>
import corgy.graph.bulge_graph as cgb
ImportError: No module named corgy.graph.bulge_graph
Run Code Online (Sandbox Code Playgroud)