标签: easy-install

setuptools.setup() 接受哪些关键字参数?

setuptools.setup() 函数接受的关键字参数的完整列表是什么?(如果可能,请说明每个参数的含义。)

我已经浏览了整个网络,我不敢相信这没有记录。

我找到了这些文件:

但即使我将这些结合起来,它们也缺少其他参数,例如

  • 脚本
  • 包裹
  • 提供
  • 过时的

...我不知道还有多少论据丢失了。

setuptools.setup() 函数接受的关键字参数的完整列表是什么?

python distutils pip setuptools easy-install

20
推荐指数
1
解决办法
5817
查看次数

Homebrew,PIP,easy_install等如何工作以便我可以清理

我有一个问题,来自我的教程,而没有真正理解我在做什么.我认为问题的根源是我不明白OS X文件系统的工作原理.

问题比Python更大,但是当我开始学习Python时,我意识到我真的很难理解.所以在开始的时候我开始关注教程,这导致我经常使用easy_install命令,当很多教程推荐PIP我从来没有运行它.所以我运行了很多命令并安装了很多不同的包.

据我所知,Lion附带了一个python安装程序.我一直在使用它,从中我已经安装了easy_install的各种软件包.有没有办法回到默认安装并从一开始就开始?这是我想做的事吗?如果是这样的话?

使用我用Homebrew安装的Python版本有什么好处吗?当我运行Python命令时,如何查看Python的运行位置?

当我用easy_install,homebrew,macports等安装东西时,实际上最终会有什么东西?

python homebrew pip macports easy-install

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

Easy_install缓存下载的文件

有没有办法配置easy_install以避免在安装失败时再次下载文件?

python egg easy-install python-wheel

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

在升级到OS X Mavericks之后破坏了easy_install和pip

升级到OS X 10.9 Mavericks并安装了XCode,命令行工具,XQuartz等.现在尝试运行pip安装,但它说找不到分发:

Traceback (most recent call last):

  File "/usr/local/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
  File     "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",     line 2603, in <module>
    working_set.require(__requires__)
  File   "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",     line 666, in require
needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: pip==1.4.1
Run Code Online (Sandbox Code Playgroud)

所以我尝试用easy_install安装pip.事实证明,这也是愚蠢的:

Traceback (most recent call last):
  File "/usr/local/bin/easy_install", line 5, in <module>
from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2607, in <module>
parse_requirements(__requires__), Environment()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in …
Run Code Online (Sandbox Code Playgroud)

python pip setuptools easy-install osx-mavericks

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

如何在将包提交给PyPI时修复".pypic中找不到PyPI-test"的问题?

我按照指南如何向PyPI提交包以提交一个包.它抛出了以下错误:


    Traceback (most recent call last):
      File "setup.py", line 27, in 
        'Programming Language :: Python',
      File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
        self.run_command(cmd)
      File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.6/site-packages/setuptools/command/register.py", line 9, in run
        _register.run(self)
      File "/usr/lib64/python2.6/distutils/command/register.py", line 33, in run
        self._set_config()
      File "/usr/lib64/python2.6/distutils/command/register.py", line 84, in _set_config
        raise ValueError('%s not found in .pypirc' % self.repository)
    ValueError: PyPI-test not found in .pypirc

我的.pypirc文件上下文是:


    [distutils] # this tells distutils what package …

python pip python-2.6 easy-install pypi

18
推荐指数
3
解决办法
4798
查看次数

在小牛上安装Pillow/PIL

我尝试使用pip/easy_install安装Pillow时遇到一个奇怪的错误:

cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers -I/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/Cellar/freetype/2.5.3/include/freetype2 -I/private/var/folders/c_/r7sp373509jdb6_1xmmzvl9c0000gn/T/pip_build_tills13/Pillow/libImaging -I/System/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imaging.c -o build/temp.macosx-10.9-intel-2.7/_imaging.o

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: command 'cc' failed with exit status 1 …
Run Code Online (Sandbox Code Playgroud)

python pip easy-install python-imaging-library pillow

18
推荐指数
4
解决办法
8834
查看次数

尝试在OSX上安装easy_install时权限被拒绝

我正在尝试安装easy_install,好吧......看看你自己:


sh setuptools-0.6c11-py2.6.egg

处理setuptools-0.6c11-py2.6.egg

将setuptools-0.6c11-py2.6.egg复制到/Library/Python/2.6/site-packages

将setuptools 0.6c11添加到easy-install.pth文件中

将easy_install脚本安装到/ usr/local/bin

错误:/ usr/local/bin/easy_install:权限被拒绝


如何授予我的计算机权限?我尝试用友好的声音告诉它,"计算机,我特此授予您安装easy_install的权限",但这不起作用.

python macos installation easy-install

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

为什么我收到错误:命令'llvm-gcc-4.2'因退出状态1而失败

我正在设置os X 10.7.

我正在使用Python的默认安装:
/ Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/

我使用一个名为easy_install的基于Python的包管理器.Easy_install似乎无法找到编译器.

编辑:当我尝试安装MySQL-python时出现此错误:

$ sudo easy_install MySQL-python 
Password:
Searching for MySQL-python
Reading http://pypi.python.org/simple/MySQL-python/
Reading http://sourceforge.net/projects/mysql-python/
Reading http://sourceforge.net/projects/mysql-python
Best match: MySQL-python 1.2.3
Downloading http://download.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.3.tar.gz
Processing MySQL-python-1.2.3.tar.gz
Running MySQL-python-1.2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-P9H9WX/MySQL-python-1.2.3/egg-dist-tmp-rRTfZL
warning: no files found matching 'MANIFEST'
warning: no files found matching 'ChangeLog'
warning: no files found matching 'GPL'
unable to execute llvm-gcc-4.2: No such file or directory
error: Setup script exited with error: command 'llvm-gcc-4.2' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)

错误:安装脚本退出并显示错误:命令'llvm-gcc-4.2'失败,退出状态为1

Xcode 4.1使用了GCC,但Xcode 4.2似乎已经改变了. …

python llvm easy-install osx-lion

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

如何在Windows中安装没有easy_install的.egg文件?

我有Python 2.6,我想安装easy _ install模块.问题是,Python 2.6的easy _ install唯一可用的安装包是.egg文件!我该怎么办?

python egg easy-install

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

如何重新安装lxml?

我在mac 10.7.5上使用python 2,7.5,beautifulsoup 4.2.1.我将使用lxml库解析xml页面,如beautifulsoup教程中所述.但是,当我运行我的代码时,它会显示出来

bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested:
lxml,xml. Do you need to install a parser library?
Run Code Online (Sandbox Code Playgroud)

我确信我已经通过所有方法安装了lxml:easy_install,pip,port等.我试着在我的代码中添加一行,看看是否安装了lxml:

import lxml
Run Code Online (Sandbox Code Playgroud)

然后python可以成功浏览此代码并再次显示上一条错误消息,发生在同一行.

所以我很确定已经安装了lxml,但没有正确安装.所以我决定卸载lxml,然后使用'正确'方法重新安装.但是当我输入时

easy_install -m  lxml
Run Code Online (Sandbox Code Playgroud)

表明:

Searching for lxml
Best match: lxml 3.2.1
Processing lxml-3.2.1-py2.7-macosx-10.6-intel.egg

Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lxml-
3.2.1-py2.7-macosx-10.6-intel.egg

Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, …
Run Code Online (Sandbox Code Playgroud)

python lxml beautifulsoup easy-install

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