pypi

Created a PyPI package and it installs, but when run it returns an import error

限于喜欢 提交于 2019-12-11 09:22:51
问题 I've created a simple package and was able to publish it in PyPI. It's file struc is: DaysGrounded\ DaysGrounded\setup.py DaysGrounded\setup.cfg DaysGrounded\requirements.txt DaysGrounded\MANIFEST.in DaysGrounded\daysgrounded\ DaysGrounded\daysgrounded\__init__.py DaysGrounded\daysgrounded\__main__.py DaysGrounded\daysgrounded\cli.py DaysGrounded\daysgrounded\gui.py DaysGrounded\daysgrounded\shared.py I installed it in another machine and run c:\Python34\Scripts\daysgrounded.exe, but it

how to install package with pypi in python 2.7?

末鹿安然 提交于 2019-12-11 02:17:18
问题 this problem, I have when try install package netstat with pypi [opmeitle@localhost ~]$ sudo pip install netstat [sudo] password for opmeitle: Downloading/unpacking netstat Running setup.py egg_info for package netstat file nester_g:.py (for module nester_g:) not found Installing collected packages: netstat Running setup.py install for netstat file nester_g:.py (for module nester_g:) not found file nester_g:.py (for module nester_g:) not found warning: install_lib: 'build/lib' does not exist

Cannot install distribute: pypi.python.org rejecting http

泄露秘密 提交于 2019-12-11 01:49:54
问题 This worked yesterday (I am fairly sure) and started failing only today. Any ideas/workaround on what I can do to install this package? Doing curl to fetch this URL clearly shows the server is just rejecting with " 403 SSL is required" and not even redirecting to the https:// url. # pip install hotqueue Collecting hotqueue Using cached hotqueue-0.2.7.tar.gz Complete output from command python setup.py egg_info: Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14

Getting setuptools to ignore PyPI repository

孤人 提交于 2019-12-11 01:48:41
问题 I have in my packages setup.py : from setuptools import setup setup( dependency_links=['http://local.mirror'], install_requires=[ 'many', 'different', 'packages', ], ... ) What seems to happen is that setuptools will load entries from install_requires in reverse order, and it will respect the dependency_links entry for only the last entry in install_requires (it installs things in reverse order). There's plenty of discussion about how to add packages that aren't in PyPI, but I can't seem to

Uploading package to pypi using twine: Invalid URI

爷,独闯天下 提交于 2019-12-10 23:48:58
问题 I followed the official documentation for uploading packages to PyPI, as well as the information provided in PyPI readme, but I get a HTTP 400 error each time: $ twine upload dist/* Uploading distributions to https://upload.pypi.org/legacy Enter your username: Sinistag Enter your password: Uploading paulla.check_dns_sync-0.1.dev0.py3-none-any.whl HTTPError: 400 Client Error: home_page: Invalid URI for url: https://upload.pypi.org/legacy What is going on ? 回答1: The problem was with the package

What does the “Py Version” in PyPI project page mean? And does it matter?

谁都会走 提交于 2019-12-10 18:47:28
问题 I notice that, most projects released on PyPI contain a "Py Version" meta data in their project page, but their values vary. If the package is not a universal package or not a pure python package, their values are understandably different, in order to denote their targeted platform, such as this nose page and this simplejson page. But some other universal pure (as far as I can tell) Python packages still contain slightly different content. For example: search "Py Version" in this requests

Difference between devpi and pypi server

安稳与你 提交于 2019-12-10 14:26:22
问题 Had a quick question here, am used to devpi and was wondering what is the difference between devpi and pypi server ? Is on better than another? Which of this one scale better? Cheers 回答1: PyPI (Python Package Index)- is the official repository for third-party Python software packages. Every time you use e.g. pip to install a package that is not in the standard it will get downloaded from the PyPI server. All of the packages that are on PyPI are publicly visible. So if you upload your own

setup.py not honoring PIP_INDEX_URL

白昼怎懂夜的黑 提交于 2019-12-10 10:27:12
问题 I am running a local pypi server. I can install packages from this server by either specifying it with the -i option of the pip command or by setting the PIP_INDEX_URL environment variable. When I install a package that has prerequisites, setup.py has historically honored the PIP_INDEX_URL environment variable, pulling the additional packages from my local server. However, on a couple of systems that have been recently installed, it is behaving differently. Running, for instance, python setup

pip换源简易方法

纵饮孤独 提交于 2019-12-10 04:54:23
pip换源简易方法 安装pqi >>> pip install pqi 列出pip源 >>> pqi ls 使用pip源 >>> pqi use < name > 例子,比如运行pqi use tuna即把当前pip源改为清华的pip源 显示当前pip源 >>> pqi show 添加新的pip源 ( 如添加 USTC 源) >>> pqi add ustc https : / / mirrors . ustc . edu . cn / pypi / web / simple 移除pip源(如官方PyPi源) >>> pqi remove pypi pip install - i http : / / mirrors . aliyun . com / pypi / simple / numpy 这是临时指定镜像地址 pip - i http : / / pypi . douban . com / simple install Flask -- trusted - host pypi . douban . com 清华:https : / / pypi . tuna . tsinghua . edu . cn / simple 阿里云:http : / / mirrors . aliyun . com / pypi / simple / 中国科技大学 https : / / pypi

Change case of package name on PyPI

荒凉一梦 提交于 2019-12-10 03:36:30
问题 I recently uploaded a package to PyPI under a name with mixed-case letters, QualysAPI. In retrospect I think it'd be better to have the package name be all lowercase per PEP 8. Is there a way I can change it? Here's what happens when I try manually edit the package name on Pypi: Forbidden Package name conflicts with existing package 'QualysAPI' Here's what happens when I try to edit the package name via python setup.py sdist upload : Upload failed (403): You are not allowed to edit 'qualysapi