2014-03-25 3 views
0

vagrant 및 virtualenv/virtualenvwrapper를 사용하여 개발 환경을 구축합니다. 최근에 내 방역 ​​상자가 제대로 공급을 중단했습니다. virtualenvwrapper가 더 이상 설치되지 않는 것 같습니다. 나는 변화 한 것을 추적하려고 노력하고있다. 변경된 내용virtualenvwrapper가 더 이상 설치되지 않음

My Vagrantfile 및 install.sh 파일의 위치는 https://gist.github.com/ErikEvenson/9763878입니다. 이 오류는 웹 상자에서 발생합니다.

[email protected]:~$ pip install virtualenvwrapper 
Downloading/unpacking virtualenvwrapper 
    Downloading virtualenvwrapper-4.2.tar.gz (125Kb): 125Kb downloaded 
    Running setup.py egg_info for package virtualenvwrapper 

    Installed /home/vagrant/build/virtualenvwrapper/pbr-0.7.0-py2.7.egg 
    Traceback (most recent call last): 
     File "<string>", line 14, in <module> 
     File "/home/vagrant/build/virtualenvwrapper/setup.py", line 7, in <module> 
     pbr=True, 
     File "/usr/lib/python2.7/distutils/core.py", line 112, in setup 
     _setup_distribution = dist = klass(attrs) 
     File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 221, in __init__ 
     self.fetch_build_eggs(attrs.pop('setup_requires')) 
     File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 245, in fetch_build_eggs 
     parse_requirements(requires), installer=self.fetch_build_egg 
     File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 588, in resolve 
     raise VersionConflict(dist,req) # XXX put more info here 
    pkg_resources.VersionConflict: (pip 1.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('pip>=1.4')) 
    Complete output from command python setup.py egg_info: 


Installed /home/vagrant/build/virtualenvwrapper/pbr-0.7.0-py2.7.egg 

Traceback (most recent call last): 

    File "<string>", line 14, in <module> 

    File "/home/vagrant/build/virtualenvwrapper/setup.py", line 7, in <module> 

    pbr=True, 

    File "/usr/lib/python2.7/distutils/core.py", line 112, in setup 

    _setup_distribution = dist = klass(attrs) 

    File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 221, in __init__ 

    self.fetch_build_eggs(attrs.pop('setup_requires')) 

    File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 245, in fetch_build_eggs 

    parse_requirements(requires), installer=self.fetch_build_egg 

    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 588, in resolve 

    raise VersionConflict(dist,req) # XXX put more info here 

pkg_resources.VersionConflict: (pip 1.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('pip>=1.4')) 

---------------------------------------- 
Command python setup.py egg_info failed with error code 1 
Storing complete log in /home/vagrant/.pip/pip.log 

답변

0

apt-get install python-pip 트릭을 할 것으로 보인다 수행 한 후 pip install --upgrade pip 실행 : 나는 virtualenvwrapper 설치하려고 할 때

내가 얻을 오류입니다. 이것은 1.5.4까지 pip를 가져오고 위의 오류를 피합니다. 또한 나머지 프로비저닝 스크립트에는 /user/local/bin/pip을 사용해야합니다.

내 프로비저닝을 pip> 1.0에 의존하도록 변경했는지 확실하지 않습니다. 그 종속성을 잠글 수있게되어서 좋았을 것입니다.

2

에릭, 대답은 작동하지 않을 수도 있지만 필자는 생각하지 않습니다. apt-get virtualenvwrapper를 사용해 보셨습니까?

내가 물어 보는 이유는 우분투가 이미 "sudo apt-get install python-virtualenv"(또한 python-pip를 설치 함)를 가지고 있기 때문에 나는 virtualenvwrapper를 install'ing하는 데 아무런 문제가 없었습니다. 유일한 차이점은 /usr/local/bin/virtualenvwrapper.sh 대신 bashrc에서 "/etc/bash_completion.d/virtualenvwrapper를 가져와야합니다"라는 것입니다.

당신은 아직도 당신이 (! 그것이 비록 작동하지 않는 경우에 저를 비난하지 않는다) 한 일에서 길을 다시 시도 할 수 있습니다 : 그런

$ sudo apt-get uninstall python-pip 
$ sudo apt-get install python-pip 
$ sudo pip uninstall virtualenvwrapper 
$ sudo apt-get install virtualenvwrapper 
then add source /etc/bash_completion.d/virtualenvwrapper to ~/.bashrc 

뭔가. 행운을 빕니다!

+0

감사합니다. 올바르게 작동한다고 생각합니다. 그러나, 그것은 pip 1.0 대 pip 1.5와 virtualenvwrapper 2.11 대 4.2를 남겨 둘 것입니다. 그것들은 큰 차이점이기 때문에, 나는 업그레이드 된 핏을 통해 로딩을 계속 할 것이라고 생각합니다. – Erik

+0

~/.virtualenvs/postmkvirtualenv에서 자동으로 업그레이드 pip가 있습니다. – umeboshi

0

시도해 볼 수 있습니다 sudo apt-get python-virtualenv virtualenwrapper를 설치하십시오.

관련 문제