I'm trying to use the python subversion SWIG libraries in a virtualenv --no-site-packages
environment. How can I make this work?
These are almost completely interchangeable, the difference being that virtualenv supports older python versions and has a few more minor unique features, while venv is in the standard library.
Virtualenv is the most common and easy to install tool for virtual environments. It's a great tool for beginners. Easy to use in the deployed environments. The most common tool for python virtual environments, so it has lots of documentation for many issues.
virtualenv is used to manage Python packages for different projects. Using virtualenv allows you to avoid installing Python packages globally which could break system tools or other projects. You can install virtualenv using pip.
Virtualenv has been deprecated in Python 3.8.
You can install it inside virtualenv from svn:
source /home/you/venv/python/bin/activate
pip install -e svn+http://pysvn.tigris.org/svn/pysvn/tags/pysvn/Extension/1.7.6/#egg=pysvn
This blog post answers my question nicely. http://codersbuffet.blogspot.com/2009/09/mercurial-subversion-and-virtualenv.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With