pypi

How can I host my own private conda repository?

♀尐吖头ヾ 提交于 2019-11-27 01:16:59
问题 I have a few python projects that are dependent on each other. I have different release versions for each project and different projects might be dependent on different release versions of a particular project. I would like to create my own conda repository on an internal server where I can push the releases of these projects as conda packages and the other projects can install the required version from there. Is this possible? If so how? 回答1: You can use a conda custom channel as your

I cannot install mysql-connector-python using pip

旧街凉风 提交于 2019-11-26 22:20:44
问题 I am trying to install mysql-connector-python==1.0.12 as part of my project's automated installation, and I get the following error from pip install : Collecting mysql-connector-python==1.0.12 (from -r /tmp/requirements.txt (line 20)) Could not find a version that satisfies the requirement mysql-connector-python==1.0.12 (from -r /tmp/requirements.txt (line 20)) (from versions: ) No matching distribution found for mysql-connector-python==1.0.12 (from -r /tmp/requirements.txt (line 20)) Up

How to remove a package from Pypi

限于喜欢 提交于 2019-11-26 21:27:09
问题 How do I remove a package from Pypi? I uploaded a package to Pypi several months ago. The package is now obsolete and I'd like to formally remove it. I cannot find any documentation on how to remove my package. 回答1: Login. Go to your packages. Check the "remove" checkbox for the particular package. Click "Remove" button. 回答2: New PYPI Website Login to pypi.org Go to releases Click delete on options dropdown Enter the version number confirm Click Delete Release to delete the release. original

Unable to install pip: Permission denied error

时间秒杀一切 提交于 2019-11-26 20:33:13
问题 I am trying to install pip but currently unable to. I navigate to the pip folder and python setup.py install Everything seems to go fine until the very end: Extracting pip-0.8.2-py2.6.egg to /Library/Python/2.6/site-packages Adding pip 0.8.2 to easy-install.pth file Installing pip script to /usr/local/bin error: /usr/local/bin/pip: Permission denied I've also tried easy_install . and attempted to refer to the related thread with no luck: Python install uninstall easy_install Any ideas? 回答1:

Find all packages installed with easy_install/pip?

你。 提交于 2019-11-26 19:14:35
Is there a way to find all Python PyPI packages that were installed with easy_install or pip? I mean, excluding everything that was/is installed with the distributions tools (in this case apt-get on Debian). Paul Woolcock pip freeze will output a list of installed packages and their versions. It also allows you to write those packages to a file that can later be used to set up a new environment. https://pip.pypa.io/en/stable/reference/pip_freeze/#pip-freeze keybits As of version 1.3 of pip you can now use pip list It has some useful options including the ability to show outdated packages. Here

Why is python setup.py saying invalid command 'bdist_wheel' on Travis CI?

爱⌒轻易说出口 提交于 2019-11-26 18:55:54
问题 My Python package has a setup.py which builds fine locally on Ubuntu Trusty and on a fresh Vagrant Ubuntu Trusty VM when I provision it like this: sudo apt-get install python python-dev --force-yes --assume-yes --fix-broken curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7 sudo -H pip install setuptools wheel virtualenv --upgrade But when I do the same on a Travis CI Trusty Beta VM: - sudo apt-get install python python-dev --force-yes --assume-yes -

how to create local own pypi repository index without mirror?

孤人 提交于 2019-11-26 17:37:50
问题 We have several own python packages and want to create local pypi repository for them using simple interface like https://pypi.python.org/simple/ This repository I want to create for local only without any mirrors due to security reason, and it will be put under apache's control The command pypimirror looks has to be initialized once, which needs to mirror. How can I generate PyPi Simple Index based on local python packages. Any other simple scripts for this ? 回答1: Since you asked to answer

How to run pip of different version of python using python command?

我是研究僧i 提交于 2019-11-26 14:35:43
I'm now currently using Python on ubuntu 15.10 But in my OS, I have many different python version installed: Python (2.7.9) Python3 (3.4.3) Python3.5 PyPy So, I got mess about the version of their package environment, for example, if I run: pip3 install django In fact I cannot import django inside python3.5 . Is there any efficiently way to call the relating version of pip ? PS: Don't suggest that I use virtualenv, I know about it and am seeking another solution. Finally I found the solution myself, see the Docs: https://docs.python.org/3/installing/index.html?highlight=pip#work-with-multiple

How can I make setuptools install a package that's not on PyPI?

杀马特。学长 韩版系。学妹 提交于 2019-11-26 11:03:33
I've just started working with setuptools and virtualenv. My package requires the latest python-gearman that is only available from GitHub. The python-gearman version that's on PyPI is an old one. The Github source is setuptools-compatible, i.e. has setup.py, etc. Is there a way to make setuptools download and install the new version instead of looking for it on PyPI and installing the old one? FYI, the new python-gearman is http://github.com/mtai/python-gearman PJ Eby The key is to tell easy_install where the package can be downloaded. In this particular case, it can be found at the url http:

python setup.py uninstall

你离开我真会死。 提交于 2019-11-26 10:56:15
I have installed a python package with python setup.py install . How do I uninstall it? Martin v. Löwis Note: Avoid using python setup.py install use pip install . You need to remove all files manually, and also undo any other stuff that installation did manually. If you don't know the list of all files, you can reinstall it with the --record option, and take a look at the list this produces. To record a list of installed files, you can use: python setup.py install --record files.txt Once you want to uninstall you can use xargs to do the removal: xargs rm -rf < files.txt Or if you're running