标签: easy-install

使用pypi安装最新的matplotlib版本

在某种程度上,这个问题已被问到......所以接受我的道歉......

我想从这里安装最新版本的matplotlib:http: //pypi.python.org/pypi/matplotlib/1.0.1

我知道我可以下载它,解压缩并编译它,但我要将它安装在许多机器上,而pip应该是一种幸福.

所以,我做了easy_install pip,这里是我用两种工具得到的输出:

$ sudo easy_install "matplotlib==1.0.1"

install_dir /usr/local/lib/python2.6/dist-packages/
Searching for matplotlib==1.0.1
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/
Reading http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/
No local packages or download links found for matplotlib==1.0.1
error: Could not find suitable distribution for Requirement.parse('matplotlib==1.0.1')
Run Code Online (Sandbox Code Playgroud)

或者用pip:

$ pip install matplotlib==1.0.1
Downloading/unpacking matplotlib==1.0.1
  Could not find a version that satisfies the requirement matplotlib==1.0.1 (from versions: )
No distributions matching the version for …
Run Code Online (Sandbox Code Playgroud)

pip matplotlib easy-install

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

Sphinx-build无法识别为内部或外部命令

在Python 2.5上,我安装了sphinx easy_install,它可以在Windows 7上的以下位置使用:

C:\Python25\Lib\site-packages\sphinx-1.0.8-py2.5.egg\sphinx
Run Code Online (Sandbox Code Playgroud)

我想将几个.rst文件转换为HTML.但每当我这样做时,我会sphinx-build遇到以下错误:

'sphinx-build' is not recognized as an internal or external command,
operable program or batch file.
Run Code Online (Sandbox Code Playgroud)

我错过了什么吗?

python windows easy-install python-sphinx

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

easy_install 和 pip 在尝试安装 numpy 时出现错误

我在我的机器上运行 Python 2.7.2。我正在尝试使用 easy_install 和 pip 安装 numpy,但他们都无法这样做。所以,当我尝试时:

sudo easy_install-2.7 numpy

我收到此错误:

“程序包安装脚本已尝试修改系统上不在 EasyInstall 构建区域内的文件,并且已中止。EasyInstall 无法安全地安装此程序包,并且即使您运行其安装脚本,也可能不支持备用安装位置手动。请通知软件包的作者和 EasyInstall 维护人员,以了解是否有可用的修复或解决方法。”

此外,当我尝试使用 pip 时:

sudo pip-2.7 安装 numpy

我收到此错误:

运行时错误:工具链损坏:无法链接简单的 C 程序

有可用的修复方法吗?

python numpy pip easy-install

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

entry_points 不会在 Python 中使用 pip 或 easy_install 创建自定义脚本?

我正在使用简单的入口点来制作一个自定义脚本,它在setup.py

  entry_points = {
           'my_scripts': ['combine_stuff = mypackage.mymod.test:foo']
  }
Run Code Online (Sandbox Code Playgroud)

其中mypackage/mymod/test.py包含:

import argh
from argh import arg
@arg("myarg", help="Test arg.")
def foo(myarg):
    print "Got: ", myarg
Run Code Online (Sandbox Code Playgroud)

当我使用这个安装我的包时(在与 相同的目录中setup.py

pip install --user -e .
Run Code Online (Sandbox Code Playgroud)

入口点似乎根本没有得到处理。这是为什么?

如果我使用 安装distribute easy_install,例如:

easy_install --user -U .
Run Code Online (Sandbox Code Playgroud)

然后入口点得到处理并创建:

$ cat mypackage.egg-info/entry_points.txt 
[my_scripts]
combine_stuff = mypackage.mymod.test:foo
Run Code Online (Sandbox Code Playgroud)

但是没有combine_stuff在我的bin目录中的任何位置放置名为的实际脚本(如~/.local/bin/)。它似乎没有被制造出来。这里出了什么问题?我怎样才能让它制作一个可执行脚本,并且最好也能使用它pip

python pip setuptools easy-install setup.py

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

Python easy_install抛出chmod-error

我正在尝试使用Windows上的获取Python和Fabric安装指南在Windows 7上安装Python Fabric .

要安装PyCrypto和Fabric,我按照指南中的建议使用了easy_install,但都失败了,返回了一个chmod-error:

Using c:\python27\lib\site-packages\fabric-1.3.4-py2.7.egg  
Processing dependencies for fabric  
Searching for pycrypto>=2.1,!=2.4  
Reading http://pypi.python.org/simple/pycrypto/  
Reading http://pycrypto.sourceforge.net  
Reading http://www.amk.ca/python/code/crypto  
Reading http://www.pycrypto.org/  
Best match: pycrypto 2.5  
Downloading http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.5.tar.gz  
Processing pycrypto-2.5.tar.gz  
Running pycrypto-2.5\setup.py -q bdist_egg --dist-dir   c:\users\birgit\appdata\local\temp\easy_install-nzrlow\pycrypto-2.5\egg-dist-tmp-_pwkm4  
The command "chmod" is spelled wrong or could not be found.

Traceback (most recent call last):
 File "C:\Python27\Scripts\easy_install-script.py", line 8, in <module> load_entry_point('setuptools==0.6c12dev-r88846', 'console_scripts', 'easy_install')()  
 File "C:\Python27\lib\site-packages\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\easy_install.py", line 1712, in main  

 [... lots and lots of lines... (if they are relevant, I'll …
Run Code Online (Sandbox Code Playgroud)

python windows chmod easy-install

2
推荐指数
1
解决办法
6311
查看次数

在Lion上安装twred for python失败

我想在我的macbook上安装twis​​ted.

System version: Mac OS X Lion 10.7.4
Xcode version: Version 4.3.3 (4E3002)
Run Code Online (Sandbox Code Playgroud)

Python版本:

Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Run Code Online (Sandbox Code Playgroud)

当我运行这个:

sudo easy_install twisted
Run Code Online (Sandbox Code Playgroud)

它失败了:

Processing Twisted-12.1.0.tar.bz2

Running Twisted-12.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_installdtZ7Lk/Twisted-12.1.0/egg-dist-tmp-NUWexg

unable to execute gcc-4.2: No such file or directory

...

error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)

但我确实安装了gcc:

gcc --version 

i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM …
Run Code Online (Sandbox Code Playgroud)

python macos xcode twisted easy-install

2
推荐指数
1
解决办法
2249
查看次数

使用Portable Python轻松安装:没有名为parse的模块

我在Windows XP上通过Portable Python 2-7安装了easy_install(通过分发模块).但是当我键入DOS命令时

easy_install pandas
Run Code Online (Sandbox Code Playgroud)

我得到以下内容: 在此输入图像描述

我在互联网上找不到任何"解析"模块("easy_install parse"产生相同的输出)

python easy-install pandas portable-python

2
推荐指数
1
解决办法
3427
查看次数

安装python软件包时出错

我无法同时从pip和安装python软件包easy_install。不断出现一些荒谬的错误。请帮助纠正它。

使用时出现相同的错误python setup.py install

安装django-memcached时出错

C:\Users\Praful\Desktop\django-redis-master>easy_install django-memcached
Traceback (most recent call last):
  File "C:\Python27\Scripts\easy_install-script.py", line 9, in <module>
    load_entry_point('distribute==0.6.27', 'console_scripts', 'easy_install')()
  File "C:\Python27\lib\site-packages\distribute-0.6.27-py2.7.egg\setuptools\com
mand\easy_install.py", line 1915, in main
    with_ei_usage(lambda:
  File "C:\Python27\lib\site-packages\distribute-0.6.27-py2.7.egg\setuptools\com
mand\easy_install.py", line 1896, in with_ei_usage
    return f()
  File "C:\Python27\lib\site-packages\distribute-0.6.27-py2.7.egg\setuptools\com
mand\easy_install.py", line 1919, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "C:\Python27\lib\distutils\core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "C:\Python27\lib\site-packages\distribute-0.6.27-py2.7.egg\setuptools\dis
t.py", line 222, in __init__
    for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
  File "C:\Python27\lib\site-packages\distribute-0.6.27-py2.7.egg\pkg_resources.
py", …
Run Code Online (Sandbox Code Playgroud)

django memcached pip easy-install

2
推荐指数
1
解决办法
2863
查看次数

如何使用easy_install完全卸载安装的pip?

在Windows 7上,我使用easy_install安装pip,并希望安装较低版本的pip.我想删除旧版本,但不知道如何完全删除easy_install安装的pip(或者如果有办法在不通过easy_install的情况下执行它,那很好).我该怎么做呢?

python pip easy-install

2
推荐指数
2
解决办法
2万
查看次数

mac os 10.9.1上的mysql-python

我似乎无法在10.9.1上安装mysql-python.我怀疑它与最新的命令行工具更新有关但我不是专家:

Running MySQL-python-1.2.5/setup.py -q bdist_egg --dist-dir /var/folders/s7/j138zlt172nf6qqpn98rhzhm0000gn/T/easy_install-kq86vo/MySQL-python-1.2.5/egg-dist-tmp-edndmM
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: Setup script exited with error: command 'cc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)

知道怎么克服这个吗?

pip也有同样的错误.

compiler-construction pip easy-install mysql-python

2
推荐指数
1
解决办法
3046
查看次数