Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

Installation fails with --target option on centos7 #449

Closed
ewdurbin opened this issue May 6, 2016 · 1 comment
Closed

Installation fails with --target option on centos7 #449

ewdurbin opened this issue May 6, 2016 · 1 comment
Labels

Comments

@ewdurbin
Copy link
Member

ewdurbin commented May 6, 2016

Originally reported by: chandu-atina (Bitbucket: chandu-atina, GitHub: chandu-atina)


I tried to install mysql-python==1.2.5 on centos7 using --target option with the following command and it failed.

$pip install --target=/var/tmp/ mysql-python==1.2.5

The issue is that the files are downloaded into "/tmp/{random_string}/lib64/python" but pip checks the files in "/tmp/{random_string}/lib/python" and throws no such file error

OS : CentOS7 (Docker Container)
Python version:
[root@ip-1]# python
Python 2.7.5 (default, Nov 20 2015, 02:00:19)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
pip --version
pip 7.1.0 from /usr/lib/python2.7/site-packages (python 2.7)

Note : pip install myql-python==1.2.5 successfully installs the file.

Regards,
Chandu


@ewdurbin ewdurbin added major and removed bug labels Jun 18, 2016
@berkerpeksag
Copy link
Collaborator

Thanks for the report, but this is not a problem in PyPI. I'd say it's a problem in both distutils and pip. There is also an open pull request against pip at pypa/pip#3730.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants