相关疑难解决方法(0)

brew安装python,但是:"python-2.7.6已安装,它只是没有链接"

免责声明:noob

OSX 10.8.5

当我在bash中安装python时,我得到了这个警告和错误:

Warning: Could not link python. Unlinking...
Error: The 'brew link' step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using 'brew link python
Run Code Online (Sandbox Code Playgroud)

所以我继续打字

brew link python
Run Code Online (Sandbox Code Playgroud)

得到了

Linking /usr/local/Cellar/python/2.7.6... Warning: Could not link python. Unlinking...

Error: Could not symlink file: /usr/local/Cellar/python/2.7.6/bin/smtpd2.py 
Target /usr/local/bin/smtpd2.py already exists. You may need to delete it. 
To force the link and overwrite all other conflicting files, do:

brew link …
Run Code Online (Sandbox Code Playgroud)

python bash homebrew

34
推荐指数
1
解决办法
4万
查看次数

如何在Homebrew中使用符号链接python?

出于某种原因,当我运行`brew link python时,它没有符号链接.我收到了以下错误,我做了它告诉我要做的事情,但它不起作用.我已经尝试过做它告诉我要做的事情,但也许我没有把formula_name放在正确的位置.此外,当我做'哪个python'它没有指向Homebrew python,我也需要帮助修复它.

    Linking /usr/local/Cellar/python/2.7.3...Warning: Could not link python. 
    Unlinking....

   Error: Could not symlink file: /usr/local/Cellar/python/2.7.3/bin/smtpd.py
   Target /usr/local/bin/smtpd2.py already exists. You may need to delete it.
   To force the link and delete this file, do:
      brew link --overwrite formula_name
Run Code Online (Sandbox Code Playgroud)

python homebrew symlink

19
推荐指数
1
解决办法
3万
查看次数

Virtualenv:未找到命令

我在尝试创建virtualenv文件夹时遇到问题,因为我的终端说virtualenv似乎没有安装.

我做了什么:

sudo pip install virtualenv
Run Code Online (Sandbox Code Playgroud)

有这个回应:

The directory '/Users/ricardogonzales/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/ricardogonzales/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with …
Run Code Online (Sandbox Code Playgroud)

python virtualenv

10
推荐指数
1
解决办法
6054
查看次数

标签 统计

python ×3

homebrew ×2

bash ×1

symlink ×1

virtualenv ×1