python-wheel

module 'pip' has no attribute 'pep425tags'

怎甘沉沦 提交于 2020-01-10 04:06:06
问题 When I am trying to install .whl with pip it said: is not a supported wheel on this platform to solve this problem, I searched the Internet and it said I can input this into shell import pip; print(pip.pep425tags.get_supported()) with this I can get the documents and versions that pip supports However, when I input these code, it said: module 'pip' has no attribute 'pep425tags' What's wrong? 回答1: This worked for me with Python 2.7 (in a virtualenv using that version): import wheel.pep425tags

How to install mod_wsgi from lfd in 2015

谁说胖子不能爱 提交于 2020-01-04 05:07:10
问题 How can I install mod_wsgi from lfd website as it has wheel extension.Whenever I am searching how to install mod_wsgi on wamp the resources tell me to install binary from this site and then keep the mod_wsgi.so file in my wamp directory. 回答1: On the lfd page is a link to: https://github.com/GrahamDumpleton/mod_wsgi/blob/master/win32/README.rst You may want to read that. The official mod_wsgi download area has binaries as .so files as explained in that link. You can still use the whl versions

doesn't setup.py develop use wheel for install_requires?

☆樱花仙子☆ 提交于 2020-01-01 09:15:22
问题 I have the impression that (using setuptools): python setup.py develop Won't use wheels when installing required packages (specified in install_requires). Questions: is my impression correct? is there a way to force it to use wheel? I am talking about this particular setup script. 回答1: For whatever reason, setuptools simply wont use wheels. The likely explanation is that setuptools is older than wheels, and no one has updated it to use them. Using pip install . works however, since pip is

doesn't setup.py develop use wheel for install_requires?

空扰寡人 提交于 2020-01-01 09:15:03
问题 I have the impression that (using setuptools): python setup.py develop Won't use wheels when installing required packages (specified in install_requires). Questions: is my impression correct? is there a way to force it to use wheel? I am talking about this particular setup script. 回答1: For whatever reason, setuptools simply wont use wheels. The likely explanation is that setuptools is older than wheels, and no one has updated it to use them. Using pip install . works however, since pip is

ValueError “Expected version spec” when installing local wheel via pip

*爱你&永不变心* 提交于 2020-01-01 07:45:11
问题 I have a closed-source Python module I am developing and would like to share with people in my workplace. I have built a wheel via setup.py bdist_wheel with this setup.py file: #!/usr/bin/env python from setuptools import setup, find_packages setup(name='mypkg', version='0.0.1', description='tools for work', author='tbhartman', packages=find_packages('src', exclude=['test*']), package_dir = {'':'src'}, entry_points={ 'console_scripts':[ 'runtool = mypkg.run:main', ], }, install_requires = [

Why can't `virtualenv` find `pkg_resources`?

六眼飞鱼酱① 提交于 2020-01-01 04:53:09
问题 I'm trying to use virtualenv in Ubuntu to install a local virtual Python environment. When I run the shell command: $ virtualenv ./virt_python It throws an exception that it can't import pkg_resources . But when I open a Python shell and from pkg_resources import load_entry_point it runs fine. For reference, the complete stacktrace is below. $ virtualenv ./virt_python New python executable in ./virt_python/bin/python Installing setuptools............done. Installing pip....... Complete output

Pip install from GitHub repo throws wheel error

£可爱£侵袭症+ 提交于 2019-12-25 02:44:47
问题 When I run: pip install git+ssh://git@github.mycompany.com/developer/sdk-python.git@master#egg=sdk-python I see this output: Cloning ssh://git@github.mycompany.com/developer/sdk-python.git (to revision master) to /private/var/folders/k1/h29nn0z959q0dr6b44kxx_8h0000gn/T/pip-install-txsz9E/sdk-python Generating metadata for package sdk-python produced metadata for project name sdk. Fix your #egg=sdk-python fragments. Requirement already satisfied: requests in ./venv27/lib/python2.7/site

Absolute path error when building wheel

无人久伴 提交于 2019-12-24 05:41:34
问题 OVERVIEW I'm trying to learn how to build wheels on my windows dev box so hopefully I'll have a nice way to deploy django websites on linux boxes. But right now I'm stuck with a little error. Here's my setup.py: from setuptools import setup, find_packages setup(name='pkg', version="1.0", packages=find_packages(), data_files=[('/etc/nginx/sites-available', ['foo.conf'])] ) When i try to do >python setup.py bdist_wheel I'm getting this error: raise ValueError, "path '%s' cannot be absolute" %

Error loading psycopg2 module when installed from a 'wheel'

旧时模样 提交于 2019-12-24 05:14:12
问题 I am trying to install some python requirements from a local package directory containing wheel archives. I am installing the requirements inside a Docker container. The steps I'm following are: $ pip install wheel # wheel runs, outputs .whl files to wheelhouse directory $ pip wheel --wheel-dir wheelhouse -r requirements.txt Then, inside my Dockerfile : ADD requirements.txt /tmp/requirements.txt ADD wheelhouse /tmp/wheelhouse # install requirements. Leave file in /tmp for now - may be useful.

Python How can I get the version number from a .whl file

心已入冬 提交于 2019-12-24 01:53:27
问题 Because of some custom logging I would like to get the version number from a wheel file. I could of course just parse the filename, but my guess is there would be a better way to do this. 回答1: What I did for now is: Get the package info and put it into a dict: def get_package_info(): info_dict = {} with open(os.path.join(glob.glob("./*.egg-info")[0], "PKG-INFO"), "r") as info: for i in info: i = i.split(":") info_dict[i[0].strip()] = i[1].strip() return info_dict Now I can get the Verion from