Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

virtualenv, python and subversion

I'm trying to use the python subversion SWIG libraries in a virtualenv --no-site-packages environment. How can I make this work?

like image 738
Diarmuid Bourke Avatar asked Jan 28 '11 16:01

Diarmuid Bourke


People also ask

Is VENV and virtualenv the same?

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.

Which virtual environment is best for Python?

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.

What is the use of virtualenv in Python?

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.

Is virtualenv deprecated?

Virtualenv has been deprecated in Python 3.8.


2 Answers

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
like image 74
Maciek Sawicki Avatar answered Sep 19 '22 17:09

Maciek Sawicki


This blog post answers my question nicely. http://codersbuffet.blogspot.com/2009/09/mercurial-subversion-and-virtualenv.html

like image 40
Diarmuid Bourke Avatar answered Sep 17 '22 17:09

Diarmuid Bourke