Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在安装 cython 0.18。但是,我不知道安装时如何设置安装路径。我更喜欢将它安装在我的个人主目录下,因为我没有在 /usr/bin 或 /usr/local/bin 下安装文件的权限。
谢谢,
李
这应该足够了:
将以下行添加到您的~/.profile:
~/.profile
export PYTHONPATH=$PYTHONPATH:~/YOUR/DEPENDENCIES/Cython-0.18 export PATH=$PATH:~/YOUR/DEPENDENCIES/Cython-0.18/bin
然后你应该能够:
CC="gcc" \ CXX="g++" \ python setup.py build_ext --inplace