如何为我的新 Python 3.5 安装设置默认路径?

How to set a default path to my new Python 3.5 install?

我刚刚从 python 官方网站安装了 python 3.5。它安装在我的电脑上并安装在我的电脑上:

/Library/Frameworks/Python.framework/Versions/3.5

但是,我正在尝试 运行 virtualenv,当我尝试创建一个新的虚拟环境时,它会将我带到这条错误消息。

-bash: /Users/me/anaconda/bin/virtualenv: No such file or directory

我从我的计算机中删除了 Anaconda,但仍然无法在我的 python 3.5 路径下创建虚拟环境,即使它已安装。

这是我的bash_profile。

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

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

### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"

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

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

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

##
# Your previous /Users/lewismenelaws/.bash_profile file was backed up as /Users/lewismenelaws/.bash_profile.macports-saved_2015-02-25_at_15:58:24
##

# MacPorts Installer addition on 2015-02-25_at_15:58:24: adding an appropriate PATH variable for use with MacPorts.

尝试添加

PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH

但是,我没有看到 python 3.5 的任何路径。

老实说,我会擦掉所有这些并使用自制软件安装 python、pip 和 virtualenv,所以一切都在 /usr/local/bin/