how to install in virtualenv?
I'd like to try out the alpha in a virtualenv, so I don't mess up things I may have installed earlier with pip. I don't know what I have installed earlier with pip, I just know something breaks each time:) After seeing https:/
$ virtualenv -p /usr/bin/python3 rpd
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/me/
Not overwriting existing python script /home/me/
Installing setuptools, pkg_resources, pip, wheel...
Complete output from command /home/me/
Collecting setuptools
Using cached setuptools-
Collecting pkg_resources
Collecting pip
Using cached pip-8.1.
Collecting wheel
Installing collected packages: setuptools, pkg-resources, pip, wheel
Exception:
Traceback (most recent call last):
File "/usr/share/
status = self.run(options, args)
File "/usr/share/
prefix=
File "/usr/share/
**kwargs
File "/usr/share/
self.
File "/usr/share/
isolated=
File "/usr/share/
prefix=prefix,
File "/usr/share/
i.finalize_
File "/usr/lib/
('build_lib', 'build_lib'))
File "/usr/lib/
src_cmd_obj = self.distributi
File "/usr/lib/
self.
File "/usr/lib/
% (source, command_name, option))
distutils.
-------
...Installing setuptools, pkg_resources, pip, wheel...done.
Is it not possible to use virtualenv with rapid-photo-
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Damon Lynch
- Solved:
- 2016-08-22
- Last query:
- 2016-08-22
- Last reply:
- 2016-08-22
|
#1 |
It's perfectly doable but not easy, simply because you need every dependency listed here: http://
BTW be wary of running commands like pip when you've untarred the Rapid Photo Downloader archive. It will pick up the setup.cfg which can cause unexpected problems of exactly the kind you've run into above.
Probably it would be a lot easier for you to use the tool pip to list what you already have installed on your system and determine if the packages Rapid Photo Downloader will upgrade or install conflict with what you already have. Do keep in mind that Rapid Photo Downloader 0.9 is installed exclusively for your user, not the system python.
So in short, before messing about with a virtualenv, consult the pip documentation to determine how to list packages. It's pretty easy to do that.
Thanks Damon Lynch, that solved my question.