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.
如何在 ubuntu(10.04, 64bits) 中为 python 库设置或创建新的环境变量。我必须配置
蟒蛇路径
图书馆_HOME
图书馆数据
在 bash 中,您可以使用export:
export
export PYTHONPATH=/path/to/library export library_HOME=/path/to/library_HOME etc.
您可以将这些行放在 ~/.bashrc 或 ~/.bash_profile 中,以便在每次启动登录 shell 时加载它们。