Windows 7 64-bit Problems installing pip or virutalenv
Hi, Just doing some experiments with PyPy I'd like to install pip / virutalenv. With pypy and Linux no problem With CPython (32 bit) and windows 7 64-bit no problem With pypy and Windows 7 64-bit no success. Any hints ???? I even tried it with disabling the antivirus. In fact so far I couldn't download and install any package successfully. Perhaps somebody could recommend a very simple package as a starting poimt. Experimenting without virtualenv is a serious pain. Installing pypy and easy_install (setuptools) seems to work Installing virtualenv / pip always fails. I'm running out of ideas. SO any help is welcome. Below the details. Step 1: Download and unpack pypy ------------------------------------- I open a cmd window I downloaded pypy1.9.0 and extracted it to a directory (%PYPY_PATH%) Step 2: Installing easy_install (setup_tools) ----------------------------------------------- I download http://python-distribute.org/distribute_setup.py and install it with cd %PYPY_PATH% pypy.exe distribute_setup.py This seems to work basically. However a really strange message is: Don't have permissions to write C:\test\pypy-1.9\site-packages\setuptools-0.6c11-py2.7.egg-info, skipping Not sure, where this is coming from. I assume, that another thread / process didn't close the file properly Just for fun I tried this also with a privileged window. Same problem: Step 3: Try to install virtualenv ------------------------------------- I tried following steps in a normal cmd window awith a cmd window with admin privileges. When starting virtualenv from a admin-cmd window. Then I get following output: C:\test>pypy-1.9.2\bin\easy_install.exe virtualenv Searching for virtualenv Reading http://pypi.python.org/simple/virtualenv/ Reading http://www.virtualenv.org Reading http://virtualenv.openplans.org Best match: virtualenv 1.8.2 Downloading http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.2.tar.gz#... Processing virtualenv-1.8.2.tar.gz Writing c:\users\XXXXX\appdata\local\temp\easy_install-ubcvxv\virtualenv-1.8.2\setup.cfg Running virtualenv-1.8.2\setup.py -q bdist_egg --dist-dir c:\users\XXXXX\appdata\local\temp\easy_install-ubcvxv\virtualenv-1.8.2\egg-dist-tmp-cd7mao warning: no previously-included files matching '*' found under directory 'docs\_templates' warning: no previously-included files matching '*' found under directory 'docs\_build' No eggs found in c:\users\XXXX\appdata\local\temp\easy_install-ubcvxv\virtualenv-1.8.2\egg-dist-tmp-cd7mao (setup script problem?) C:\test> Step 4) Trying to Install pip ------------------------------- Installing pip fails as well. C:\test>pypy-1.9.2\bin\easy_install.exe pip Searching for pip Reading http://pypi.python.org/simple/pip/ Reading http://www.pip-installer.org Reading http://pip.openplans.org Best match: pip 1.2.1 Downloading http://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz#md5=db8a6d8a45... Processing pip-1.2.1.tar.gz Writing c:\users\XXXX\appdata\local\temp\easy_install-rxf5c5\pip-1.2.1\setup.cfg Running pip-1.2.1\setup.py -q bdist_egg --dist-dir c:\users\XXXX\appdata\local\temp\easy_install-rxf5c5\pip-1.2.1\egg-dist-tmp-an2nbn warning: no files found matching '*.html' under directory 'docs' warning: no previously-included files matching '*.txt' found under directory 'docs\_build' no previously-included directories found matching 'docs\_build\_sources' No eggs found in c:\users\XXXX\appdata\local\temp\easy_install-rxf5c5\pip-1.2.1\egg-dist-tmp-an2nbn (setup script problem?) error: c:\users\XXXX\appdata\local\temp\easy_install-rxf5c5\pip-1.2.1\docs\index.txt: The process cannot access the file because it is being used by another p rocess. C:\test> If I start, easy_install as normal user, then I get first a popu asking me if I want to allow easy_install to make changes to my computer. then a new cmd window opens with some messages (dowmloading, . . . ) then the window disappears and then I get a popup, that windows is not sure my program installed correctly
This is a known problem in pip itself https://bugs.pypy.org/issue702 (I guess that the same might be happening with virtualenv? )
On 09/09/2012 09:46 AM, Dario Bertini wrote:
This is a known problem in pip itself
https://bugs.pypy.org/issue702
(I guess that the same might be happening with virtualenv? )
Thanks for your answer Dario. I'm now able to install pip. I tested pip and could install pygments and SOAPpy I also seem to be able to install virtualenv with pip, though it reports some warnings:
C:\test>\tools\pypy-1.9\bin\pip.exe install virtualenv Downloading/unpacking virtualenv Downloading virtualenv-1.8.2.tar.gz (2.2MB): 2.2MB downloaded Running setup.py egg_info for package virtualenv
warning: no previously-included files matching '*' found under directory 'docs\_templates' warning: no previously-included files matching '*' found under directory 'docs\_build' Installing collected packages: virtualenv Running setup.py install for virtualenv
warning: no previously-included files matching '*' found under directory 'docs\_templates' warning: no previously-included files matching '*' found under directory 'docs\_build' Installing virtualenv-script.py script to C:\tools\pypy-1.9\bin Installing virtualenv.exe script to C:\tools\pypy-1.9\bin Installing virtualenv-2.7-script.py script to C:\tools\pypy-1.9\bin Installing virtualenv-2.7.exe script to C:\tools\pypy-1.9\bin Successfully installed virtualenv Cleaning up...
C:\test>
When trying to create a vritualenv with virtualenv.exe targetdir I get a new error this time. the target directory is already created and some files exist already. However scripts like 'activate.bat' are still missing. I think the important error line is
DistributionNotFound: setuptools>=0.6c11
with 'pip freeze' I see: distribute==0.6.28 an alphabetic comparison of the versions would indicate, that my distribute version is too old :-( I can also paste the full error log, but I think this is the line, that counts.
participants (2)
-
Dario Bertini
-
Gelonida N