[英]Pip2PI uses Python 3 packages, even in a Python 2 virtualenv?
I am trying to use pip2tgz to build a pipPI compatible package for installation on a non-connected machine. 我正在尝试使用pip2tgz构建与pipPI兼容的软件包,以便在未连接的计算机上进行安装。 I am working from a python 2.7. 我正在使用python 2.7。 virtual env and have verified that pip2tgz is running from it. 虚拟环境,并已验证pip2tgz正在运行。 When I attempt to add, eg, south the package, pip2tgz downloads the file South-0.8.4-py2.py3-none-any.whl. 当我尝试添加(例如,向南)软件包时,pip2tgz下载了文件South-0.8.4-py2.py3-none-any.whl。 dir2pi does not index that file and, on the target machine, when I attempt to install south, I get the error message: dir2pi不会对该文件建立索引,并且在目标计算机上,当我尝试向南安装时,出现错误消息:
OSError: [Errno 2] No such file or directory: '/data/www/pkgs/simple/south/'
Is it possible that pip2tgz is not respecting its python version, when it downloads packages? pip2tgz在下载软件包时是否可能不遵守其python版本? Can I force it to stick to the tgz format? 我可以强迫它坚持使用tgz格式吗?
I had the same issue. 我遇到过同样的问题。 After upgrading pip2pi to version 0.6.2 ( python wheel fixes ), my local repository worked. 将pip2pi升级到0.6.2版(python wheel fixes)后,我的本地存储库工作了。
so try: 所以尝试:
pip install --upgrade pip2pi
... and recreate you local repository. ...并重新创建本地存储库。
Try to locate the package on http://pypi.python.org and copy the link of the tgz file and run 尝试在http://pypi.python.org上找到该软件包,然后复制tgz文件的链接并运行
pip2tgz PATH/TO/DIR URL/TO/TGZ
and remove the md5sum (everything behind the #). 并删除md5sum(#号后面的所有内容)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.