pypi

How to install PyPi packages using anaconda conda command

我与影子孤独终老i 提交于 2019-12-17 17:31:54
问题 When using the Anacoda Python distribution, what is the best way to install a PyPi package that isn't available directly through Anaconda? For now I'm using: conda pipbuild [pypi_name] conda install --use-local [package_spec] But I'm unclear if this is the best way and if conda update --all will update these packages when updates are made available. I'm also unclear what the point of binstar is when PyPi already exists. 回答1: If you want to build conda packages for PyPI packages, the

python setup.py uninstall

陌路散爱 提交于 2019-12-17 01:13:12
问题 I have installed a python package with python setup.py install . How do I uninstall it? 回答1: 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

python setup.py uninstall

旧城冷巷雨未停 提交于 2019-12-17 01:13:11
问题 I have installed a python package with python setup.py install . How do I uninstall it? 回答1: 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

How to include .exe, apt-get and brew install files on a PyPi setup.py file

心已入冬 提交于 2019-12-13 17:00:23
问题 I'm writing a setup.py file to install an OpenSource project using PyPi package. The thing is, this project requires to install as well outside apps ( ghostscript , imagemagick , and tesseract ). These apps have different ways to install depending on the platform (win, linux, or mac). I wrote a file that when I execute python setup.py install install all of it. The problem is when I load the tar and whl files on PyPi and I execute pip install Gap-ML it is just installing the modules but it is

pep381run broken when restart: httplib.ResponseNotReady

北城以北 提交于 2019-12-13 07:15:59
问题 I'm trying to setup a local pypi server. I use pep381client to synchronize the official PYPI server. It works fine. But today I encountered a problem: I stop (by Ctr+C) it and then restart , pep381run raise error as the following: E:\tmp>pep381run.py pypi Synchronizing OBITools Copying /packages/source/O/OBITools/OBITools-0.2.000.tar.gz Copying /packages/source/O/OBITools/OBITools-0.2.002.tar.gz Copying /packages/source/O/OBITools/OBITools-00.02.503.tar.gz Copying /packages/source/O/OBITools

Include *.pyd files in Python Packages

微笑、不失礼 提交于 2019-12-12 08:14:00
问题 I have a python module module.pyd that works pretty fine once it is put manually onto the site-packages of python installation folder. The problem starts when I upload my solution to a cloud enviroment, the buildpack requests that I pass every module as a package to be installed with pip install module . I ve created a folder with a simple __init__.py file that just imports everything of the module.pyd so that my module is treated like a folder. Then I read here http://peterdowns.com/posts

python pip installation error 'cannot fetch base index URL'

笑着哭i 提交于 2019-12-12 01:56:15
问题 fairly new user but have basic understanding of command line/python. when attempting to install pip through windows 8 powershell get the following error message: Cannot fetch index base URL https://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement pip Cleaning up... No distributions at all found for pip Storing debug log for failure in C:\Users\xxxx\pip\pip.log other instances of similar question seem to suggest something to do with proxy and then some more

Favoring a pip-installed module over the standard library copy

蓝咒 提交于 2019-12-11 20:36:50
问题 I've been digging into a Module was already imported warning I get when I run ipython and various other programs in Python 2.7: $ ipython [path to python]/lib/python2.7/site-packages/path.py:122: UserWarning: Module argparse was already imported from [path to python]/lib/python2.7/argparse.pyc, but [path to python]/lib/python2.7/site-packages is being added to sys.path import pkg_resources This stems from argparse being included both in the standard library and as a module from PyPI. In my

Buildout can't find the links for the dependecies of Pypi Plone add-ons

一世执手 提交于 2019-12-11 15:14:19
问题 I'm trying to install some add-ons to Plone but buildout can't find the links for the dependencies. I have the following in my buildout.cnfg find-links += http://dist.plone.org/release/5.0.4 http://getpaid.googlecode.com/files/yoma.batching-0.2.2-getpaid.zip And index = https://pypi.python.org/simple/ eggs = Plone Pillow collective.addthis collective.cart.shopping Products.PloneGetPaid When I run bin/buildout I get Getting distribution for 'plone.recipe.zope2instance==4.4.0'. warning: no

Cannot search package in PyPI with pip

大憨熊 提交于 2019-12-11 11:03:28
问题 nose-printlog is listed in PyPI but when I search the package by pip, I cannot see it by pip search nose-printlog . Does anyone know why it's not searchable in pip? Note: Now you can find it by the pip search nose-printlog command. This question was posted relatively in a short time after the package was uploaded. 回答1: It seems that is a heavy issue that persists since 2015, here there is the bug discussion group. 03/04/2016 is still not resolved. UPDATE: Issue #397 has been raised for the