setuptools

pip install -U setuptools fail windows 10

☆樱花仙子☆ 提交于 2019-12-04 22:56:16
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\AppData\Local\Temp\pip-i5jxitem- uninstall\users\Username\pycharmprojects\untitled1\venv\lib\site- packages

Mac Python Setuptools Installing in Wrong Directory

白昼怎懂夜的黑 提交于 2019-12-04 21:41:22
Prior to today, executing sudo python setup.py install would install my desired module to /Library/Python/2.7/site-packages/ . However, today it has been trying to install to /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ . The only installs that occurred between these changes were Macports, updating Command Line Tools for Xcode, and OS X El Capitan update. How can I change the default setuptools install path back to /Library/Python/2.7/site-packages/ ? UPDATE #1 $ which -a python /usr/local/bin/python /usr/bin/python $ echo $PATH /opt

easy_install with pypy while Python is installed

心不动则不痛 提交于 2019-12-04 20:13:25
问题 I installed PyPy while still having Python 2.7 on my system. How do I install and then use easy_install with PyPy? What is the syntax for distinguishing where I want to install to with easy_install ? Should I set any environment variables for ease of use? I'm on Windows, but these questions seem relevant for all platform... 回答1: You need to install easy_install for pypy manually. It's explained in the answer to this question : Installing Python eggs under PyPy 回答2: An alternative solution is

Custom location for .pypirc file

我与影子孤独终老i 提交于 2019-12-04 16:16:32
问题 Does setuptools allow for the .pypirc file to be specified in a custom location rather than $HOME/.pypirc ? I'm setting up a jenkins job to publish to an internal repository, and want the .pypirc file to be inside the job's workspace. 回答1: This is doable by overloading the default command classes used for communication with the PyPI or your custom repository server. This can be done in your setup.py script. Let the code do the talk first: # this is your project's setup.py script import os

setuptools: force version of another package (if present) while not forcing installation of this package (when not present)

血红的双手。 提交于 2019-12-04 16:15:54
During development of Pylint, we encountered interesting problem related to non-dependency that may break pylint package . Case is following: python-future had a conflicting alias to configparser package. Quoting official docs : This release removes the configparser package as an alias for ConfigParser on Py2 to improve compatibility with Lukasz Langa’s backported configparser package. Previously python-future and the configparser backport clashed, causing various compatibility issues. (Issues #118, #181) python-future itself is not a dependency of Pylint What would be a standard way to

How can I make setuptools (or distribute) install a package from the local file system

只谈情不闲聊 提交于 2019-12-04 15:39:15
问题 Is it possible to specify (editable) source dependencies in setup.py that are known to reside on the local file system? Consider the following directory structure, all of which lives in a single VCS repository: projects utils setup.py ... app1 setup.py ... # app1 files depend on ../utils app2 setup.py ... # app2 files depend on ../utils Given the following commands: cd projects mkvirtualenv app1 pip install -e app1 I'd like to have all the dependencies for app1 installed, including "utils",

How to disable uploading a package to PyPi unless --public is passed to the upload command

假装没事ソ 提交于 2019-12-04 13:47:36
问题 I'm developing packages and uploading development/testing/etc versions of my packages to a local devpi server. In order to prevent an accidental upload to PyPi, I'm adopted the common practice of: setup(..., classifiers=[ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Private :: Do not Upload" ], ...) which works great, but what about when I'm finally ready to upload the package to PyPi? I've come up with a totally ugly, but

Why does 'pip' require “setuptools >= 0.8” even though I have 2.1 installed?

一笑奈何 提交于 2019-12-04 12:39:24
When I attempt certain commands with pip , I get an error message stating that pip “requires setuptools >= 0.8 for dist-info” even though I have, according to yolk -l (as well as pip list ), a much higher version of setuptools installed: pip - 1.5 - active ... setuptools - 2.1 - active Why is pip asking for a version of setuptools >= 0.8? Isn't 2.1 > 0.8; or is my installation not in fact at the version that yolk is reporting? Is there something I need to do to ensure that I in fact do have "setuptools >= 0.8"? You may have more than one setuptools installed. If there is a link to lower

Ubuntu下pip工具安装遇到的问题

倾然丶 夕夏残阳落幕 提交于 2019-12-04 12:09:11
Ubuntu 14.04.3环境下进行Python开发的时候遇到如下问题。 安装pip的时候,首先需要安装setuptools,使用命令sudo apt-get install python-setuptools进行setuptools的安装。 出现如下错误: The following packages have unmet dependencies: python -setuptools : Depends: python -pkg -resources ( = 3.3 - 1 ubuntu1) but 3.3 - 1 ubuntu2 is to be installed E: Unable to correct problems, you have held broken packages . 解决办法: sudo apt -get install python -pkg -resources = 3.3 - 1 ubuntu1 sudo apt -get install python -setuptools 然后使用sudo easy_install pip进行pip的安装。 来源: CSDN 作者: TheOneGIS 链接: https://blog.csdn.net/T_27080901/article/details/50740023

Error while full update pip packages

萝らか妹 提交于 2019-12-04 11:04:54
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 failure in /Users/rmuhamedgaliev/.pip/pip.log Can i say pip ignore vboxapi while update? I tried