virtualenv cannot create environment - python-3.x
I'm running on an iMac runing the latest version of catalina. I have python 3.7.5 installed via homebrew. Up to now, I've just been installing packages using sudo -H pip3 install ...
I would like to use virtualenv. I have virtualenv version 16.7.8 installed. However, when I try to create a new virtualenv in my file system, after a lot of stuff about finding files on pythonhosted, I get the trace back below. Apparently it's trying to create a subdirectory to /lib! This looks like some sort of bug. Any suggestions about tracking it down? It has created bin, lib and include subdirectories, but only lib has any files in it.
Using base prefix '/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7'
New python executable in /Users/victorsmiller/Programming/Python/tst/bin/python3.7
Also creating executable in /Users/victorsmiller/Programming/Python/tst/bin/python
Please make sure you remove any previous custom paths from your /Users/victorsmiller/.pydistutils.cfg file.
Installing setuptools, pip, wheel...
Complete output from command /Users/victorsmiller...on/tst/bin/python3.7 - setuptools pip wheel:
Created temporary directory: /private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-ephem-wheel-cache-2_g3dz1c
Created temporary directory: /private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6
Created requirements tracker '/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6'
Created temporary directory: /private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-install-oboxx8ib
Looking in links: /usr/local/lib/python3.7/site-packages/virtualenv_support
1 location(s) to search for versions of setuptools:
* https://pypi.org/simple/setuptools/
Getting page https://pypi.org/simple/setuptools/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/setuptools/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /simple/setuptools/ HTTP/1.1" 304 0
Skipping link: not a file: /usr/local/lib/python3.7/site-packages/virtualenv_support (from -f)
Analyzing links from page https://pypi.org/simple/setuptools/
Skipping link: unsupported archive format: .egg: https://files.pythonhosted.org/packages/77/38/90cae8fd99c5dc402d25930e1c91f5fcf6de5c8e982fd152a5a061e3df56/setuptools-0.6b1-py2.3.egg#sha256=ae0a6ec6090a92d08fe7f3dbf9f1b2ce889bce2a3d7724b62322a29b92cf93f0 (from https://pypi.org/simple/setuptools/)
and then a lot of similar lines to the last one. Then followed by:
Local files found: /usr/local/lib/python3.7/site-packages/virtualenv_support/setuptools-41.6.0-py2.py3-none-any.whl
Given no hashes to check 305 links for project 'setuptools': discarding no candidates
Using version 42.0.0 (newest of versions: 0.9.8, 1.1.6, 1.2, 1.3, 1.3.1, 1.3.2, 1.4, 1.4.1, 1.4.2, 2.0, 2.0.1, 2.0.2, 2.1, 2.1.2, 2.2, 3.1, 3.2, 3.3, 3.4, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.5, 3.5.1, 3.5.2, 3.6, 3.7, 3.7.1, 3.8, 3.8.1, 5.0, 5.0.1, 5.0.2, 5.1, 5.2, 5.3, 5.4, 5.4.1, 5.4.2, 5.5, 5.5.1, 5.6, 5.7, 5.8, 6.0.1, 6.0.2, 6.1, 7.0, 8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.1, 8.2, 8.2.1, 8.3, 9.0, 9.0.1, 9.1, 10.0, 10.0.1, 10.1, 10.2, 10.2.1, 11.0, 11.1, 11.2, 11.3, 11.3.1, 12.0, 12.0.1, 12.0.2, 12.0.3, 12.0.4, 12.0.5, 12.1, 12.2, 12.3, 12.4, 13.0.1, 13.0.2, 14.0, 14.1, 14.1.1, 14.2, 14.3, 14.3.1, 15.0, 15.1, 15.2, 16.0, 17.0, 17.1, 17.1.1, 18.0, 18.0.1, 18.1, 18.2, 18.3, 18.3.1, 18.3.2, 18.4, 18.5, 18.6, 18.6.1, 18.7, 18.7.1, 18.8, 18.8.1, 19.0, 19.1, 19.1.1, 19.2, 19.3, 19.4, 19.4.1, 19.5, 19.6, 19.6.1, 19.6.2, 19.7, 20.0, 20.1, 20.1.1, 20.2.2, 20.3, 20.3.1, 20.4, 20.6.6, 20.6.7, 20.6.8, 20.7.0, 20.8.0, 20.8.1, 20.9.0, 20.10.1, 21.0.0, 21.1.0, 21.2.0, 21.2.1, 21.2.2, 22.0.0, 22.0.1, 22.0.2, 22.0.4, 22.0.5, 23.0.0, 23.1.0, 23.2.0, 23.2.1, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 24.1.0, 24.1.1, 24.2.0, 24.2.1, 24.3.0, 24.3.1, 25.0.0, 25.0.1, 25.0.2, 25.1.0, 25.1.1, 25.1.2, 25.1.3, 25.1.4, 25.1.5, 25.1.6, 25.2.0, 25.3.0, 25.4.0, 26.0.0, 26.1.0, 26.1.1, 27.0.0, 27.1.0, 27.1.2, 27.2.0, 27.3.0, 27.3.1, 28.0.0, 28.1.0, 28.2.0, 28.3.0, 28.4.0, 28.5.0, 28.6.0, 28.6.1, 28.7.0, 28.7.1, 28.8.0, 28.8.1, 29.0.0, 29.0.1, 30.0.0, 30.1.0, 30.2.0, 30.2.1, 30.3.0, 30.4.0, 31.0.0, 31.0.1, 32.0.0, 32.1.0, 32.1.1, 32.1.2, 32.1.3, 32.2.0, 32.3.0, 32.3.1, 33.1.0, 33.1.1, 34.0.0, 34.0.1, 34.0.2, 34.0.3, 34.1.0, 34.1.1, 34.2.0, 34.3.0, 34.3.1, 34.3.2, 34.3.3, 34.4.0, 34.4.1, 35.0.0, 35.0.1, 35.0.2, 36.0.1, 36.1.0, 36.1.1, 36.2.0, 36.2.1, 36.2.2, 36.2.3, 36.2.4, 36.2.5, 36.2.6, 36.2.7, 36.3.0, 36.4.0, 36.5.0, 36.6.0, 36.6.1, 36.7.0, 36.7.1, 36.7.2, 36.8.0, 37.0.0, 38.0.0, 38.1.0, 38.2.0, 38.2.1, 38.2.3, 38.2.4, 38.2.5, 38.3.0, 38.4.0, 38.4.1, 38.5.0, 38.5.1, 38.5.2, 38.6.0, 38.6.1, 38.7.0, 39.0.0, 39.0.1, 39.1.0, 39.2.0, 40.0.0, 40.1.0, 40.1.1, 40.2.0, 40.3.0, 40.4.0, 40.4.1, 40.4.2, 40.4.3, 40.5.0, 40.6.0, 40.6.1, 40.6.2, 40.6.3, 40.7.0, 40.7.1, 40.7.2, 40.7.3, 40.8.0, 40.9.0, 41.0.0, 41.0.1, 41.1.0, 41.2.0, 41.3.0, 41.4.0, 41.5.0, 41.5.1, 41.6.0, 42.0.0)
Collecting setuptools
Created temporary directory: /private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-unpack-qj_9img3
Looking up "https://files.pythonhosted.org/packages/61/a2/82b506a6cdb42cc79a65d5a9e790112cf6b98ee7aba4a53a2b9c9c8047d0/setuptools-42.0.0-py2.py3-none-any.whl" in the cache
Current age based on date: 3817
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 3817
Using cached https://files.pythonhosted.org/packages/61/a2/82b506a6cdb42cc79a65d5a9e790112cf6b98ee7aba4a53a2b9c9c8047d0/setuptools-42.0.0-py2.py3-none-any.whl
Added setuptools from https://files.pythonhosted.org/packages/61/a2/82b506a6cdb42cc79a65d5a9e790112cf6b98ee7aba4a53a2b9c9c8047d0/setuptools-42.0.0-py2.py3-none-any.whl#sha256=4248cb506794bececcddeddb1678bc722f9cfcacf02f98f7c0af6b9ed893caf2 to build tracker '/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6'
Removed setuptools from https://files.pythonhosted.org/packages/61/a2/82b506a6cdb42cc79a65d5a9e790112cf6b98ee7aba4a53a2b9c9c8047d0/setuptools-42.0.0-py2.py3-none-any.whl#sha256=4248cb506794bececcddeddb1678bc722f9cfcacf02f98f7c0af6b9ed893caf2 from build tracker '/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6'
1 location(s) to search for versions of pip:
* https://pypi.org/simple/pip/
Getting page https://pypi.org/simple/pip/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/pip/" in the cache
Request header has "max_age" as 0, cache bypassed
https://pypi.org:443 "GET /simple/pip/ HTTP/1.1" 304 0
Analyzing links from page https://pypi.org/simple/pip/
Skipping link: No sources permitted for pip: https://files.pythonhosted.org/packages/3d/9d/1e313763bdfb6a48977b65829c6ce2a43eaae29ea2f907c8bbef024a7219/pip-0.2.tar.gz#sha256=88bb8d029e1bf4acd0e04d300104b7440086f94cc1ce1c5c3c31e3293aee1f81 (from https://pypi.org/simple/pip/)
and a lot more lines similar to the last, followed by
Found link file:///usr/local/lib/python3.7/site-packages/virtualenv_support/wheel-0.33.6-py2.py3-none-any.whl, version: 0.33.6
Local files found: /usr/local/lib/python3.7/site-packages/virtualenv_support/wheel-0.33.6-py2.py3-none-any.whl
Given no hashes to check 37 links for project 'wheel': discarding no candidates
Using version 0.33.6 (newest of versions: 0.9, 0.9.5, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.19.0, 0.21.0, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.28.0, 0.29.0, 0.30.0, 0.31.0, 0.31.1, 0.32.0, 0.32.1, 0.32.2, 0.32.3, 0.33.0, 0.33.1, 0.33.4, 0.33.5, 0.33.6)
Processing /usr/local/lib/python3.7/site-packages/virtualenv_support/wheel-0.33.6-py2.py3-none-any.whl
Added wheel from file:///usr/local/lib/python3.7/site-packages/virtualenv_support/wheel-0.33.6-py2.py3-none-any.whl to build tracker '/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6'
Removed wheel from file:///usr/local/lib/python3.7/site-packages/virtualenv_support/wheel-0.33.6-py2.py3-none-any.whl from build tracker '/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6'
Installing collected packages: setuptools, pip, wheel
ERROR: Could not install packages due to an EnvironmentError.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/commands/install.py", line 455, in run
use_user_site=options.use_user_site,
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/req/__init__.py", line 62, in install_given_reqs
**kwargs
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/req/req_install.py", line 861, in install
use_user_site=use_user_site, pycompile=pycompile,
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/req/req_install.py", line 495, in move_wheel_files
warn_script_location=warn_script_location,
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/wheel.py", line 461, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/wheel.py", line 392, in clobber
ensure_dir(dest) # common for the 'include' path
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/utils/misc.py", line 116, in ensure_dir
os.makedirs(path)
File "/Users/victorsmiller/Programming/Python/tst/bin/../lib/python3.7/os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/Users/victorsmiller/Programming/Python/tst/bin/../lib/python3.7/os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/Users/victorsmiller/Programming/Python/tst/bin/../lib/python3.7/os.py", line 221, in makedirs
mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/lib'
Cleaning up...
Removed build tracker '/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6'
I just ran into this problem, and it appears to be specific to versions >= 16.7.0. Downgrading to version 16.6.2 fixed it for me: pip install virtualenv==16.6.2
Check and uncomment out the contents of /Users/<USER_NAME>/.pydistutils.cfg
Found what was failing in my case - an earlier dist command created setup.cfg file containing:
[install]
prefix=
Removing or commenting out these lines fixed the problem.
Related
Robotframework RIDE tool showing error "Things are going to break, please only change locale by creating wxLocale objects to avoid this!"
Below modules are installed on Window 10 PC C:\Users\Pandit>pip list Package Version ------------------- ----------- numpy 1.22.3 Pillow 9.0.1 pip 19.2.3 Pygments 2.11.2 Pypubsub 4.0.3 pywin32 303 robotframework 4.1.3 robotframework-ride 1.7.4.2 setuptools 41.2.0 six 1.16.0 wxPython 4.0.7.post2 While launching ride.py below error is observed : <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 70. <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 71. <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 13. Traceback (most recent call last): File "c:\program files\python38\lib\site-packages\robotide\application\application.py", line 58, in OnInit self.frame = RideFrame(self, self._controller) File "c:\program files\python38\lib\site-packages\robotide\ui\mainframe.py", line 175, in __init__ self._init_ui() File "c:\program files\python38\lib\site-packages\robotide\ui\mainframe.py", line 279, in _init_ui self.tree = Tree(self, self.actions, File "c:\program files\python38\lib\site-packages\robotide\ui\tree.py", line 86, in __init__ self._images = TreeImageList() File "c:\program files\python38\lib\site-packages\robotide\ui\images.py", line 42, in __init__ TestCaseController: _TreeImage(self, 'robot.png'), File "c:\program files\python38\lib\site-packages\robotide\ui\images.py", line 80, in __init__ self.normal = self._get_image(image_list, normal) File "c:\program files\python38\lib\site-packages\robotide\ui\images.py", line 91, in _get_image img = wx.Image(path, wx.BITMAP_TYPE_PNG).ConvertToBitmap() wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(LC_ALL, NULL), "C") == 0" failed at ..\..\src\common\intl.cpp(1579) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale. **Things are going to break, please only change locale by creating wxLocale objects to avoid this! OnInit returned false, exiting... Error in atexit._run_exitfuncs: wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ..\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed** Looks like RIDE tool is not supporting robotframework in python 3.8.0 Please help here if any solution available. Thanks in Advance.
Like mentioned on the RIDE project README: The pre-release and current development, supports Python 3.8 (since February 2020). So you can try to install the Beta1: Install current Beta version (2.0b1) with: pip install psutil pip install -U --pre robotframework-ride
Unable to install pandas=0.18.1 on Python3.6
I am trying to setup a legacy project using python 3.6.13 as a constraint. Though I am running into an issue trying to install pandas version 0.18.1 The log are as below: Collecting numpy==1.11.1 (from -r requirements-remote.txt (line 25)) Using cached https://files.pythonhosted.org/packages/e0/4c/515d7c4ac424ff38cc919f7099bf293dd064ba9a600e1e3835b3edefdb18/numpy-1.11.1.tar.gz Collecting pandas==0.18.1 (from -r requirements-remote.txt (line 26)) Using cached https://files.pythonhosted.org/packages/11/09/e66eb844daba8680ddff26335d5b4fead77f60f957678243549a8dd4830d/pandas-0.18.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "/Users/qqqqq/.pyenv/versions/3.6.13/envs/pyenv36/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules yield saved File "/Users/qqqqq/.pyenv/versions/3.6.13/envs/pyenv36/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/Users/qqqqq/.pyenv/versions/3.6.13/envs/pyenv36/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup _execfile(setup_script, ns) File "/Users/qqqqq/.pyenv/versions/3.6.13/envs/pyenv36/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile exec(code, globals, locals) File "/var/folders/zc/tjmjl2890y57f30n1yg7dg39xl_6k6/T/easy_install-zcqg452m/numpy-1.21.0rc2/setup.py", line 34, in <module> _CYTHON_INSTALLED = ver >= LooseVersion(min_cython_ver) RuntimeError: Python version >= 3.7 required.
The error is pretty explicit: Python version >= 3.7 required. According to the paths you’re using 3.6 (i.e. from 2016, and that will reach end-of-life at the end of the year). This seems to come from the fact that pandas is trying to install numpy-1.21.0rc2 as a dependency, see the traceback (emphasis mine): File "/var/folders/zc/tjmjl2890y57f30n1yg7dg39xl_6k6/T/easy_install-zcqg452m/numpy-1.21.0rc2/setup.py", line 34, in I’m not sure why pandas is doing that, but if you first install the numpy from your requirements file, pandas might consider that dependency resolved. pip install numpy==1.11.1 pip install -r requirements-remote.txt By the way, neither numpy 1.11.1 nor pandas 0.18.1 list python 3.6 as a supported python version, they both have 3.5 at most. It might still work, but maybe it could also fail due to python 3.6 being too new (I have no way of testing this − sorry). You could try to refresh these dependencies to the highest versions that still support python 3.6: numpy 1.19.5 pandas 1.1.5
In Python 3, pip cannot install modules
I'm getting the SSL error when trying to install a module using pip and I've looked around on the net and found the common solution for that problem: C:\Python35> pip3 install --index-url=http://pypi.python.org/simple/ --trusted-host pypi.python.org sphinx However, running this command did not work as I thought. What am I doing wrong? C:\Python35> pip3 install --index-url=http://pypi.python.org/simple/ --trusted-host pypi.python.org -vvv sphinx Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect Collecting sphinx 1 location(s) to search for versions of sphinx: * http://pypi.python.org/simple/sphinx/ Getting page http://pypi.python.org/simple/sphinx/ Starting new HTTP connection (1): pypi.python.org "GET /simple/sphinx/ HTTP/1.1" 403 16 Could not fetch URL http://pypi.python.org/simple/sphinx/: 403 Client Error: SSL is required for url: http://pypi.python.org/simple/sphinx/ - skipping Could not find a version that satisfies the requirement sphinx (from versions: ) Cleaning up... No matching distribution found for sphinx Exception information: Traceback (most recent call last): File "C:\python35\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options, args) File "C:\python35\lib\site-packages\pip\commands\install.py", line 324, in run requirement_set.prepare_files(finder) File "C:\python35\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "C:\python35\lib\site-packages\pip\req\req_set.py", line 554, in _prepare_file require_hashes File "C:\python35\lib\site-packages\pip\req\req_install.py", line 278, in populate_link self.link = finder.find_requirement(self, upgrade) File "C:\python35\lib\site-packages\pip\index.py", line 514, in find_requirement 'No matching distribution found for %s' % req pip.exceptions.DistributionNotFound: No matching distribution found for sphinx As Mukul Sharma wrote, using C:\Python35>pip3 install --index-url=https://pypi.python.org/simple/ --trusted-host pypi.python.org -vvv sphinx instead fixed my problem.
Python has stopped support on requests using HTTP. They are only allowing requests over HTTPS. You can read more about it here. Just use https instead of http here: C:\Python35> pip3 install --index-url=https://pypi.python.org/simple/ --trusted-host pypi.python.org sphinx
Tensorflow installation - Double requirement given
I got the following error when installing tensorflow using the command: sudo pip3 install --upgrade $TF_BINARY_URL I also tried without the --upgrade but to no avail: sudo pip3 install $TF_BINARY_URL The environment variable / OS / Python / CUDA Toolkit / CuDNN as obtained from the tensorflow install instructions: # Ubuntu/Linux 64-bit, GPU enabled, Python 3.4 # Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below. $ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl The error message is: Double requirement given: tensorflow==0.9.0rc0 from https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl (already in tensorflow, name='tensorflow') Here is the ~/.pip/pip.log: /usr/bin/pip3 run on Wed Jun 15 23:13:09 2016 Downloading/unpacking https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl Downloading from URL https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl Cleaning up... Removing temporary dir /tmp/pip_build_root... Double requirement given: tensorflow==0.9.0rc0 from https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl (already in tensorflow, name='tensorflow') Exception information: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/lib/python3/dist-packages/pip/req.py", line 1263, in prepare_files self.add_requirement(req_to_install) File "/usr/lib/python3/dist-packages/pip/req.py", line 989, in add_requirement % (install_req, self.get_requirement(name), name)) pip.exceptions.InstallationError: Double requirement given: tensorflow==0.9.0rc0 from https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl (already in tensorflow, name='tensorflow') I have googled and checked the other SO questions for this installation issue but did not find anything related. I will be happy to provide any other environment information necessary for debugging this.
python3 in virtualenv yolk call causes IOError
In ubuntu lucid I have python 2.6.5 by default.I compiled python3.3.1 and set up virtualenv and wrapper such that workon envpy331 gets me to work on python3.3.1.Then I installed yolk using pip Now,when I run >>yolk -l it lists all python libraries installed even in python2.6.5 as below ,and finally throws an IOError BeautifulSoup - 3.0.7a - active development (/usr/local/lib/python2.6/dist-packages) Brlapi - 0.5.4 - active development (/usr/lib/pymodules/python2.6) CouchDB - 0.6 - active development (/usr/lib/pymodules/python2.6) Django - 1.3.1 - active development (/usr/local/lib/python2.6/dist-packages) Fabric - 1.5.1 - active development (/usr/local/lib/python2.6/dist-packages/Fabric-1.5.1-py2.6.egg) ... nose - 1.3.0 - active development (/usr/local/lib/python2.6/dist-packages) numpy - 1.3.0 - active nvidia-common - 0.0.0 - active oauth - 1.0a - active odict - 1.3.2 - active development (/usr/local/lib/python2.6/dist-packages/odict-1.3.2-py2.6.egg) Traceback (most recent call last): File "/usr/local/bin/yolk", line 9, in <module> load_entry_point('yolk==0.4.3', 'console_scripts', 'yolk')() File "/usr/local/lib/python2.6/dist-packages/yolk/cli.py", line 1090, in main my_yolk.run() File "/usr/local/lib/python2.6/dist-packages/yolk/cli.py", line 203, in run return getattr(self, action)() File "/usr/local/lib/python2.6/dist-packages/yolk/cli.py", line 223, in show_all return self.show_distributions("all") File "/usr/local/lib/python2.6/dist-packages/yolk/cli.py", line 298, in show_distributions metadata = get_metadata(dist) File "/usr/local/lib/python2.6/dist-packages/yolk/metadata.py", line 38, in get_metadata msg = email.message_from_string(dist.get_metadata('PKG-INFO')) File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1488, in get_metadata f = open(self.path,'rU') IOError: [Errno 2] No such file or directory: '/usr/lib/python2.6/dist-packages/onboard-0.0.0.egg-info' Any idea why this happens? Do I need to compile python3 again and set up virtualenv?
Found the answer in a pull request on github This will let people and tools (e.g.: https://python3wos.appspot.com/) know that yolk is compatible with Python 3. Should do a release to PyPI; it seems that the latest code in GitHub works with Python 3, but the last released version on PyPI (0.4.3; released 2012-02-06) doesn't work with Python 3. so use the github release instead