简体   繁体   English

brew或pip-安装credstash-错误-在taps / OSErr six-1.4.1-py2.7.egg-info操作中找不到命名的公式

[英]brew or pip - install credstash - errors - No named formulae found in taps / OSErr six-1.4.1-py2.7.egg-info operation not permitted

Getting the following error on my Mac Terminal window. 在我的Mac Terminal窗口上出现以下错误。

$ pip --version
pip 6.1.1 from /Library/Python/2.7/site-packages (python 2.7)

Python version is 2.7.10 Python版本是2.7.10

While trying to install credstash using brew, I'm getting the following error. 尝试使用brew安装credstash时,出现以下错误。

$ `which python` --version && brew update && brew install credstash
Python 2.7.10
Already up-to-date.
Error: No available formula with the name "credstash" 
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

Got the similar error, when I tried to install pip3 using brew. 当我尝试使用brew安装pip3时,遇到了类似的错误。

Tried installing credstash from pip but that errored out as well. 尝试从pip安装credstash,但也出错。

[arun@MacBook-Pro-2 ~/aks/wspace] $ pip install credstash
You are using pip version 6.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting credstash
  Using cached credstash-1.12.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.6.1 in /Library/Python/2.7/site-packages (from credstash)
Collecting boto3>=1.1.1 (from credstash)
  Using cached boto3-1.4.2-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): jmespath<1.0.0,>=0.7.1 in /Library/Python/2.7/site-packages (from boto3>=1.1.1->credstash)
Collecting botocore<1.5.0,>=1.4.1 (from boto3>=1.1.1->credstash)
  Using cached botocore-1.4.87-py2.py3-none-any.whl
Collecting s3transfer<0.2.0,>=0.1.0 (from boto3>=1.1.1->credstash)
  Using cached s3transfer-0.1.10-py2.py3-none-any.whl
Collecting python-dateutil<3.0.0,>=2.1 (from botocore<1.5.0,>=1.4.1->boto3>=1.1.1->credstash)
  Using cached python_dateutil-2.6.0-py2.py3-none-any.whl
Collecting docutils>=0.10 (from botocore<1.5.0,>=1.4.1->boto3>=1.1.1->credstash)
  Using cached docutils-0.13.1-py2-none-any.whl
Collecting futures<4.0.0,>=2.2.0 (from s3transfer<0.2.0,>=0.1.0->boto3>=1.1.1->credstash)
  Using cached futures-3.0.5-py2-none-any.whl
Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore<1.5.0,>=1.4.1->boto3>=1.1.1->credstash)
  Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: six, python-dateutil, docutils, botocore, futures, s3transfer, boto3, credstash
  Found existing installation: six 1.4.1
    DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling six-1.4.1:
      Exception:
      Traceback (most recent call last):
        File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 246, in main
          status = self.run(options, args)
        File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 352, in run
          root=options.root_path,
        File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 687, in install
          requirement.uninstall(auto_confirm=True)
        File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 730, in uninstall
          paths_to_remove.remove(auto_confirm)
        File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 126, in remove
          renames(path, new_path)
        File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 292, in renames
          shutil.move(old, new)
        File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
          copy2(src, real_dst)
        File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
          copystat(src, dst)
        File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
          os.chflags(dst, st.st_flags)
      OSError: [Errno 1] Operation not permitted: '/var/folders/z5/37m4q63j3bn48y3dxgf40tdm0000gn/T/pip-LMRqSS-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

IF I don't use sudo in the above command, then I get the following exception error: 如果我在上面的命令中不使用sudo,那么我将收到以下异常错误:

OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/concurrent'

To get latest pip, as pip is provided via python on macOS, if I try to install python using brew, I'm getting the following, poking into it how I can remove Xcode first: 为了获得最新的点子,因为在macOS上通过python提供了点子,如果我尝试使用brew安装python,我将得到以下信息,并介绍如何首先删除Xcode:

$ brew install python
Error: Your Xcode (5.0.2) is too outdated.
Please update to Xcode 8.2 (or delete it).
Xcode can be updated from the App Store.

$ pip --version
pip 6.1.1 from /Library/Python/2.7/site-packages (python 2.7)

As I thought I have an older pip version, I download this file: 我以为我使用的是较早的pip版本,因此我下载了此文件:

$ wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py 

Which successfully installed a newer version of pip. 其中成功安装了较新版本的pip。 Now showing: 正在上映:

$ pip --version
pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7)

Retried doing pip install credstash but still getting the same error (with or without sudo). 尝试执行pip install credstash,但仍然出现相同的错误(带有或不带有sudo)。

I tried the following to get credstash installed. 我尝试了以下操作来安装credstash

Downloaded Python3 Mac binary from here. 从此处下载Python3 Mac二进制文件。

https://www.python.org/ftp/python/3.5.2/python-3.5.2-macosx10.6.pkg

Installed the .pkg file GUI way. 安装了.pkg文件的GUI方式。

Opened a Terminal window in Mac. 在Mac中打开“终端”窗口。

[arun@MacBook-Pro-2 /tmp] $ which pip
/usr/local/bin/pip

[arun@MacBook-Pro-2 /tmp] $ pip --version
pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7)

[arun@MacBook-Pro-2 /tmp] $ which python
/usr/bin/python

[arun@MacBook-Pro-2 /tmp] $ python --version
Python 2.7.10

[arun@MacBook-Pro-2 /tmp] $ which python3
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3

[arun@MacBook-Pro-2 /tmp] $ python3 --version
Python 3.5.2

[arun@MacBook-Pro-2 /tmp] $ which pip3
/Library/Frameworks/Python.framework/Versions/3.5/bin/pip3

[arun@MacBook-Pro-2 /tmp] $ pip3 --version
pip 8.1.1 from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (python 3.5)
[arun@MacBook-Pro-2 /tmp] $ 

[arun@MacBook-Pro-2 /tmp] $ pip3 install credstash
Collecting credstash
  Using cached credstash-1.12.0.tar.gz
Collecting pycrypto>=2.6.1 (from credstash)
  Using cached pycrypto-2.6.1.tar.gz
Collecting boto3>=1.1.1 (from credstash)
  Using cached boto3-1.4.2-py2.py3-none-any.whl
Collecting s3transfer<0.2.0,>=0.1.0 (from boto3>=1.1.1->credstash)
  Using cached s3transfer-0.1.10-py2.py3-none-any.whl
Collecting botocore<1.5.0,>=1.4.1 (from boto3>=1.1.1->credstash)
  Using cached botocore-1.4.87-py2.py3-none-any.whl
Collecting jmespath<1.0.0,>=0.7.1 (from boto3>=1.1.1->credstash)
  Using cached jmespath-0.9.0-py2.py3-none-any.whl
Collecting docutils>=0.10 (from botocore<1.5.0,>=1.4.1->boto3>=1.1.1->credstash)
  Downloading docutils-0.13.1-py3-none-any.whl (536kB)
    100% |████████████████████████████████| 542kB 1.3MB/s 
Collecting python-dateutil<3.0.0,>=2.1 (from botocore<1.5.0,>=1.4.1->boto3>=1.1.1->credstash)
  Using cached python_dateutil-2.6.0-py2.py3-none-any.whl
Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore<1.5.0,>=1.4.1->boto3>=1.1.1->credstash)
  Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: pycrypto, docutils, six, python-dateutil, jmespath, botocore, s3transfer, boto3, credstash
  Running setup.py install for pycrypto ... done
  Running setup.py install for credstash ... done
Successfully installed boto3-1.4.2 botocore-1.4.87 credstash-1.12.0 docutils-0.13.1 jmespath-0.9.0 pycrypto-2.6.1 python-dateutil-2.6.0 s3transfer-0.1.10 six-1.10.0
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[arun@MacBook-Pro-2 /tmp] $ 
[arun@MacBook-Pro-2 /tmp] $ which credstash
/Library/Frameworks/Python.framework/Versions/3.5/bin/credstash
[arun@MacBook-Pro-2 /tmp] $

If you're trying to install to system Python then you need sudo. 如果您尝试安装到系统Python,则需要sudo。 If you want to just play around, look into creating a virtualenv and install there. 如果您只是想玩转,请考虑创建一个virtualenv并在那里安装。 http://docs.python-guide.org/en/latest/dev/virtualenvs/ http://docs.python-guide.org/en/latest/dev/virtualenvs/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 pip install xgboost 出现错误命令“python setup.py egg_info”在 mac (Python 2.7) 上失败,错误代码为 1 - pip install xgboost with error Command “python setup.py egg_info” failed with error code 1 on mac (Python 2.7) Homebrew 错误:在水龙头中找不到公式 - Homebrew Error: No formulae found in taps pip3 install matplotlib失败,命令“ python setup.py egg_info”失败,错误代码为1 Mac OS X - pip3 install matplotlib fails with Command “python setup.py egg_info” failed with error code 1 Mac OS X pip无法安装任何东西,错误:无效命令&#39;egg_info&#39; - pip fails to install anything, error: invalid command 'egg_info' 尝试在 macOS 上安装 MongoDB 时“未找到类似命名的公式” - "No similarly named formulae found" when trying to install MongoDB on macOS 无法升级到Python2.7的pip 1.4.1 - Unable to upgrade to pip 1.4.1 for Python2.7 如何修复“错误:在多次点击中找到公式”? - How can I fix "Error: Formulae found in multiple taps"? Py2app:不允许操作 - Py2app: Operation not permitted 在 macOS Big Sur 上安装 py3exiv2 失败 | 错误:在中找到 No.egg-info 目录 - Installation of py3exiv2 on macOS Big Sur fails | ERROR: No .egg-info directory found in 命令“python setup.py egg_info”在 /tmp/pip-build-hn4hol_z/spacy/ 中失败,错误代码为 1 - Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hn4hol_z/spacy/
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM