python3.4在我的mac上下载到哪里?
我今天决定最好下载python 3.4。因此,我转到python/下载页面并执行此操作。现在,我正试图使用我的新python模块mkvirtualenv-p python3.4沙盒创建一个新的virtualenv,但是我得到一个错误,它找不到我的python可执行文件python3.4在我的mac上下载到哪里?,python,terminal,virtualenv,Python,Terminal,Virtualenv,我今天决定最好下载python 3.4。因此,我转到python/下载页面并执行此操作。现在,我正试图使用我的新python模块mkvirtualenv-p python3.4沙盒创建一个新的virtualenv,但是我得到一个错误,它找不到我的python可执行文件 The executable /Users/croberts/python3.4 (from --python=/Users/croberts/python3.4) does not exist 这是可以理解的,但我不知道它在哪
The executable /Users/croberts/python3.4 (from --python=/Users/croberts/python3.4) does not exist
这是可以理解的,但我不知道它在哪里。python的旧版本在/usr/bin/中,但新版本没有安装在那里。如何搜索程序使用终端的位置?根据安装程序附带的ReadMe.txt,Python默认安装为
/Library/frameworks/Python.framework
。我刚刚进行了一次测试安装,结果就是:
/Library/frameworks/Python.framework/versions/3.4/Python
除非您更改了安装程序上的设置,否则它应该在那里运行。(如果您是从源代码处安装的,我想您应该知道它放在哪里。)需要注意的是,如果您使用(可能还有其他OSX软件包管理器,如MacPorts,尽管我没有使用过),通过PPC安装程序安装Python将导致警告:
Warning: Python is installed at /Library/Frameworks/Python.framework
Homebrew only supports building against the System-provided Python or a
brewed Python. In particular, Pythons installed to /Library can interfere
with other software installs.
因此,如果您确实使用自制软件(这很好),最好只使用
brew安装python3
,这将把它放入/usr/local/bin
。然后,您可以将python
(或python3
)别名为该版本。OSX是否内置了哪个
?在Linux上,我只会使用OSX上确实存在的Python 3.4。通常,它将位于类似于/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4
的位置。