Python 激活的虚拟环境中不同的路径环境变量

Python 激活的虚拟环境中不同的路径环境变量,python,macos,path,environment-variables,pythonpath,Python,Macos,Path,Environment Variables,Pythonpath,我注意到,当我在任何项目中遇到回溯错误时,跟踪中的文件路径会显示一个我不再使用的特定项目。例如: File "/Users/MyComputer/Developer/SampleApp/venv/lib/python2.7/site-packages/flask/app.py"... 我假设站点包不是来自SampleApp,对吗?我在所有项目中都使用虚拟环境。当我在激活的虚拟环境中运行echo$PATH时,我得到: /Users/MyComputer/Developer/SampleApp/v

我注意到,当我在任何项目中遇到回溯错误时,跟踪中的文件路径会显示一个我不再使用的特定项目。例如:

File "/Users/MyComputer/Developer/SampleApp/venv/lib/python2.7/site-packages/flask/app.py"...
我假设站点包不是来自SampleApp,对吗?我在所有项目中都使用虚拟环境。当我在激活的虚拟环境中运行echo$PATH时,我得到:

/Users/MyComputer/Developer/SampleApp/venv/bin: #<----- Shouldn't point to a specific project! 
/Library/Frameworks/Python.framework/Versions/3.5/bin:
/Users/MyComputer/bin/:
/usr/local/bin:
/usr/bin:
/bin:
/usr/sbin:
/sbin:
/usr/local/git/bin:
/Users/MyComputer/.rvm/bin:
/Applications/Postgres.app/Contents/Versions/9.4/bin
下面是我的
.bash\u配置文件中的内容:

[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile

# Postgres.app
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin

# Setting PATH for Python 3.5
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH
为什么激活的venv路径与停用的env路径不同?先谢谢你!:)

[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile

# Postgres.app
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin

# Setting PATH for Python 3.5
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH