setuptools

Can't build wheel - error: invalid command 'bdist_wheel'

时光毁灭记忆、已成空白 提交于 2019-12-06 19:37:45
问题 I've tried everything in this very related question: Why can I not create a wheel in python? But I still get: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' Context: $ pip --version pip 8.1.1 from /home/bdillman/proj/fashion/lib/python3.5/site-packages (python 3.5) $ python -c "import setuptools; print(setuptools.__version__)" 18.2 $ python -

pip install -U setuptools fail windows 10

大兔子大兔子 提交于 2019-12-06 17:16:04
问题 I just installed Python3.7 and Pycharm on my Windows 10 PC. I am running pip version 9.0.2 In Pycharm, it says I have version 28.8.0 of setuptools, when I try to upgrade this in Pycharm, which I believe runs the line pip install -U setuptools I get the error: PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'c:\users\Username\pycharmprojects\untitled1\venv\lib\site- packages\setuptools-28.8.0-py3.6.egg' -> 'C:\Users\Username

easy_install gets wrong pip version

故事扮演 提交于 2019-12-06 16:20:51
I have been following the instructions on http://docs.python-guide.org/en/latest/starting/install/osx/ but for some reason this is not going as I believe it would be expected. I have python 2.7 running by default but had to get easy_install up-to-date by following the instructions on: https://superuser.com/questions/256717/easy-install-the-wrong-version-of-python-modules-mac-os and link it from /usr/local/bin/share to /usr/local/bin. It seems to be working fine. The problem is that now when I install pip it seems to install to 2.6 and not 2.7. darky:~ user$ easy_install --upgrade pip Searching

Unable to install python-setuptools: ./configure: No such file or directory

醉酒当歌 提交于 2019-12-06 13:26:39
The question is related to the answer to "Unable to install Python without sudo access" . I need to install python-setuptools to install python modules. I have extracted the installation package. I get the following error when configuring [~/wepapps/pythonModules/setuptools-0.6c9]# ./configure --prefix=/home/masi/.local -bash: ./configure: No such file or directory I did not find the solution at the program's homepage . How can I resolve this error? As Noah states, setuptools isn't an automake package so doesn't use ‘./configure’. Instead it's a pure-Python-style ‘setup.py’ (distutils) script.

【转载】Python的包管理工具(进化关系)

微笑、不失礼 提交于 2019-12-06 10:19:34
刚开始学习 Python 时,发现各类文档和 Blog 中使用的包安装方式各不相同,有的使用 easy_install,setuptools,有的使用 pip,distribute,那麽这几个工具有什么关系呢,看下面这个图就明白了。 可以看出 distribute 是 setuptools 的取代,pip 是 easy_install 的取代 。 正如使用 easy_install 之前需要安装 setuptools ,pip 的使用同样需要依赖 distribute 的安装。 下面简单的介绍一下: Distribute 是对标准库 disutils 模块的增强,我们知道 disutils 主要是用来更加容易的打包和分发包,特别是对其他的包有依赖的包。 Distribute 被创建是因为 Setuptools 包不再维护了。 1.安装 Distribute 可以通过 distribute_setup.py 脚本来安装 Distribute,也可以通过 easy_install,pip,或者源文件来进行安装。不过使用 distribute_setup.py 来安装是最简单和受欢迎的方式。 $ curl -0 http://python-distribute.org/distribute_setup.py $ sudo python distribute_setup.py 2.

Packages in same namespace: can't import module in setup script

陌路散爱 提交于 2019-12-06 09:50:29
I'm curious about the following situation. Let's say I have two projects named project_alpha and project_bravo , both defining a top-level namespace package mymeta . The layout: project_alpha/ -> mymeta/ -> __init__.py -> project_alpha/ -> __init__.py -> version.py -> setup.py project_bravo/ -> mymeta/ -> __init__.py -> project_bravo/ -> __init__.py -> version.py -> setup.py Both mymeta/__init__.py s contain only the line __import__('pkg_resources').declare_namespace(__name__) (according to namespace section in setuptools docs ). Contents of both version.py s: __version_info__ = (0, 9, 9,

python setuptools: ImportError: cannot import name Library

假装没事ソ 提交于 2019-12-06 05:46:49
I have a Windows 7 64bit machine and want to install the python package mgrs. I have tried using both easy_install and running python setup.py install in the mgrs directory. Easy_install gives me the error below. C:\Users\farrell>easy_install mgrs Searching for mgrs Reading https://pypi.python.org/simple/mgrs/ Best match: mgrs 1.1.0 Downloading https://pypi.python.org/packages/source/m/mgrs/mgrs-1.1.0.tar.gz#md5 =96e0c00f16d86a3f8b84c2c46cb68b8e Processing mgrs-1.1.0.tar.gz Writing c:\users\farrell\appdata\local\temp\easy_install-lzqjsi\mgrs-1.1.0\setup .cfg Running mgrs-1.1.0\setup.py -q

Error while full update pip packages

混江龙づ霸主 提交于 2019-12-06 04:17:53
问题 While pip update all packages with command pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U Pip print error with vboxapi Downloading/unpacking vboxapi Could not find any downloads that satisfy the requirement vboxapi Some externally hosted files were ignored (use --allow-external vboxapi to allow). Some insecure and unverifiable files were ignored (use --allow-unverified vboxapi to allow). Cleaning up... No distributions at all found for vboxapi Storing debug log for

Correct use of PEP 508 environment markers in setup.cfg

China☆狼群 提交于 2019-12-06 02:28:27
问题 I am trying to make use of PEP 496 -- Environment Markers and PEP 508 -- Dependency specification for Python Software Packages by specifying dependencies that only make sense on specific OS. My setup.py looks like this: import setuptools assert setuptools.__version__ >= '36.0' setuptools.setup() My minimal setup.cfg looks like this: [metadata] name = foobar version = 1.6.5+0.1.0 [options] packages = find: install_requires = ham >= 0.1.0 eggs >= 8.1.2 spam >= 1.2.3; platform_system=="Darwin" i

install pyopencv with pip on Mac OS X

对着背影说爱祢 提交于 2019-12-06 01:15:27
问题 I am trying to install pyopencv with pip in OS X Mountain Lion and it fails by import setuptools. Following is my work. what is "Library" in setuptools? I have not seen that before. I already installed opencv via homebrew and other things. In doucmentation of pyopencv, it doesn't explain installation with pip only source install, (img2)appleparan@LiamMac src $ brew install cmake Warning: cmake-2.8.11.2 already installed (img2)appleparan@LiamMac src $ brew install cmake --upgrade Warning: