Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [virtualenv]

virtualenv is a tool that creates sandboxed Python environments.

0
votes
0answers
19 views

How do I allow pip inside anaconda3 venv when pip set to require virtualenv?

I've just rebuilt my mac environment using the tutorials here: https://hackercodex.com/guide/mac-development-configuration/ & here: https://hackercodex.com/guide/python-development-environment-...
1
vote
1answer
52 views

Installing the python packages in virtual enviroment with sudo

Actually I came across the problem while trying to install mySQL on a Django development virtual environment. pip install mysqlclient I tried running sudo pip install mysqlclient. It runs well, but ...
0
votes
0answers
13 views

Install TesserOCR package on python virtualenv

I am trying to install a python wrapper for Tesseract OCR https://github.com/tesseract-ocr/tesseract. I have found this python package https://github.com/sirfz/tesserocr and followed the installation ...
0
votes
1answer
196 views

`python3.7: bad interpreter: No such file or directory`

I installed Python, pip3, and virtualenv as in this guide for TensorFlow: brew install python pip3 install -U virtualenv Then I was able to create a virtual environment with: virtualenv --system-...
0
votes
0answers
144 views

How to run Shell Script in windows with virtual Environment?

I have created virtual environment in my system with the directory called virt_env. I have installed necessary python scripts. Now I want to run .sh script from the same virtual Environment. If I ...
0
votes
1answer
17 views

Is there a simple low-overhead way to install deb packages in a virtual environment?

When I'm working on some arbitrary project I usually need a couple of packages. For all the python packages I create a virtualenv so that once I'm done I can delete the whole thing, and it does not ...
0
votes
2answers
1k views

What is the alternative for source command in cmd?

I want to run the Windows (Command Prompt) equivalent of source myvenv/bin/activate so as to activate and enter into my virtual environment.
22
votes
3answers
24k views

Can't install virtual interpreter in PyCharm in Linux

When I try to add virtualenv as an interpreter in PyCharm Community 2018.1.2 in Kubuntu 18.04 I get the following error: ModuleNotFoundError: No module named 'distutils.core' How can I solve this?
0
votes
0answers
210 views

Remove Python alias to use virtualenv for Python

When I install virtualenv and activate it which python returns my /usr/bin/python. I read here it is because I have python alias in my bash startup scipt and virtualenv doesn't work with it. However, ...
0
votes
0answers
42 views

Terminator modify view by script

Iam using the terminator terminal and would like to know, if I can achieve the following somehow: When entering (cd example) a folder that is a git repository, show the current branch in front of the ...
1
vote
2answers
934 views

Activate virtualenv using alias

I can activate my python virtual environment from it's folder by entering . bin/activate. I'd like to instead type a single word alias, such as shazam, from the home folder (or anywhere else) that ...
0
votes
1answer
367 views

Unable to set up virtualenv on CentOS for python3

I am using a server that runs CentOS. The default version of python there is 2.7. It also has python3.4 installed. The package I need to work with requires python3.5. I installed python3.5 but it was ...
0
votes
1answer
651 views

How to install numpy on Python 2.7 in virtualenv?

I'm trying to install numpy on Python 2.7 in virtualenv (on Cygwin). However, when I try to import numpy, I get an ImportError: Administrator@Ron ~/python/virtualenv $ virtualenv -p /usr/bin/python2....
1
vote
1answer
591 views

What do double curly braces mean in systemd scripts?

A stackoverflow answer about running python scripts upon system startup uses {{ and }} in its syntax. What do they mean? ExecStart={{ venv_home }}/bin/fooservice --serve-in-foreground I am also not ...
1
vote
0answers
99 views

How can I troubleshoot VENVs `--system-site-packages` not mirroring my system?

I'm running Arch Linux and want to use virtual environments to install only those few PIP packages I use for specific projects while continuing to use the Arch packages for Python. However, when I ...
0
votes
0answers
2k views

Windows CMD cannot use Python Virtualenv or Django commands

I'm trying to use python Virtualenv and Django. I have successfully installed both using Pip. On every tutorial I've found, it tells me to open CMD and type in a command. For example: C:\Users\USER\...
-1
votes
2answers
956 views

Find the explicit path of %USERPROFILE% in windows 7

I am trying to find the current %USERPROFILE% path on windows 7. What is the simplest way to do this? I've tried hunting around with regedit N.b. I'm doing this as part of setting up a python ...
3
votes
1answer
2k views

Python virtualenv not activating in Windows 10 Cmder

I use Cmder on windows 10 with Python 3.5 and virtualenv on my laptop and work computer just fine. Now I have a new computer running Windows 10, Python 3.5, virtualenv 15.0 and I am able to ...
1
vote
1answer
86 views

lost virtualenv display to the left of bash prompt

I added thy Holy prompt to display my current branch so I never push to master. We all use it and it works, but I am no-longer seeing what virtualenv I'm using at the moment, which is a hassle. Based ...
2
votes
1answer
3k views

bash -c “workon” return: “command not found”

Using "workon" in bash result in list on envs. bash> workon project_1 When trying via bash -c, error is returned. bash> bash -c "workon" bash: workon: command not found Edit 1: More ...
0
votes
1answer
742 views

How to run script in same session without exec?

I have below script to set me in my project:- #! /bin/zsh source ~/.zshrc crld #alias for Project base cd Kenneth_Love/survivalguide workon kenneth_tutorial This script works but doesn't drop me in ...
11
votes
1answer
16k views

Create a Python 3 virtual environment

I installed python3-virtualenv on Lubuntu 15.1 using the official Ubuntu package apt-get install python3-virtualenv. The official documentation indicates that a simple virtualenv . in my project ...
1
vote
1answer
485 views

pip install virtualenv taking forever on Windows 7

I'm trying to setup everything in order to start developing with python and Django on a Windows 7 laptop. I already installed python 2.7.11 from here and installed pip using the get-pip.py script and ...
2
votes
1answer
3k views

shell environment setup for virtualenv/virtualenvwrapper

The question is about shell setup for virtualenvwrapper, an extension to virtualenv (python guide). Similar questions had been asked many times but with a lot with different answers: Environment ...
0
votes
1answer
248 views

Python - Turbo Gears setup

I'm trying to setup a Turbogears enviroment for Python, following the guide here http://turbogears.readthedocs.org/en/latest/turbogears/wiki20.html#wiki20 I'm stuck at the virtualenv tgnev step, ...
0
votes
2answers
388 views

virtualenv cannot create environment

System used= ubuntu 14.04 , python = 2.7.6 . I'm trying to setup virtualenvironment using virtualenv to setup django1.8 . I installed pip and virtualenv using below commands apt-get install python-...
13
votes
6answers
13k views

bash shell error: “no such file or directory”

I am trying to install Virtualenv wrapper on Ubuntu 14.04. But whenever I start a terminal, I get the error saying bash: /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh: No such file or ...
2
votes
0answers
490 views

How do I recompile Python in VirtualEnv?

I built virtualenv and it adds Python 2.7 by default in it. After reading this solution to a bug I have, it says I have to recompile Python with the option --enable-shared. So should I rm -rf Python ...
1
vote
1answer
1k views

No uWSGI alarm plugins when installed into a virtualenv with pip

I've been attempting to use uWSGI alarm plugins in a virtualenv to no avail. $ uwsgi --plugin plugins/alarm_xmpp --alarm "jabber xmpp:foo@example.com;password;bar@example.com" open("plugins/...
1
vote
0answers
196 views

Installing specific Not-In-Repository version of python-dev within virtualenv without using VCS

I have read the question : How can I install python-dev without sudo? However it does not quite cover the issues I am facing. I have a Debian 6.0.9 server with system python 2.6.6 installed. We ...
8
votes
2answers
2k views

Hook into “command not found” handler in Ubuntu

I want to hook into the handler for command not found wim@SDFA100461C:~$ thing No command 'thing' found, did you mean: Command 'tping' from package 'lam-runtime' (universe) Command 'thin' from ...