Questions tagged [virtualenv]
virtualenv is a tool that creates sandboxed Python environments.
6,977
questions
0
votes
0
answers
7
views
Is it possible to check the memory and ram occupied by the virtual environment
Hi recently iam working in a project. In that project i want to create a virtual environment using python and i have to monitor it (how much ram and memories occupied by the virtual environment). Is ...
0
votes
1
answer
13
views
Python env activate from C# Console Application
I am trying to activate a python project env from C# windows console application/ windows service. But system cannot read activate file. How to activate my python project env from C#?
Here is my code-
...
-2
votes
0
answers
15
views
Pip installing a package
I am trying to install a package on a virtual environment using pip. I was given these steps to follow:
git clone https://github.com/james/blah
cd blah
virtualenv env
source env/bin/activate
pip ...
0
votes
2
answers
37
views
How to use a local flake8 plugin with a python virtual env?
I'm trying to integrate a project with a flake8 plugin I wrote as a local plugin (not a PyPI package for example) as explained here. The project uses a virtual env, both locally and as a github ...
-1
votes
1
answer
10
views
ImportError: cannot import name 'global_sdk_config' from 'aws_xray_sdk'
Through Tox i am trying to run a unit test in my local. The test seems to fail, giving me the following error:
from aws_xray_sdk import global_sdk_config
E ImportError: cannot import name '...
-1
votes
0
answers
27
views
How I can install a package in virtual python without using pip?
I want to test a package of python in my virtualenv. This package is not available in PyPI. Then I have to install with apt or apt-get. Is any way to install a package just on virtualenv?
This ...
0
votes
1
answer
17
views
How to put Python virtual environment base back from miniforge to anaconda?
conda env list
base * /Users/miniforge3
/opt/anaconda3
/opt/anaconda3/envs/GitHub
/opt/anaconda3/envs/downgrade
/opt/...
-1
votes
0
answers
14
views
How can i Activate virtual environment automatically and run python script automatically
I have python project that i run in virtual environment, I need to activate my virtual environment and then run main.py command in order to run the script I want to automate this and i want to run ...
0
votes
0
answers
16
views
Why pip isn't able to download any module in virttualenv?
I created a virtualenv named as env and whenever I tried to install any python module I got this error:
D:\8th Sem\Project\Major Project\backend>env\Scripts\activate
(env) D:\8th Sem\Project\Major ...
0
votes
1
answer
27
views
How do I change where Pycharm is trying to find my main.py file?
Main.py causes error when in a folder but not when in test folder
Every time I run a .py file in Pycharm when it is in a folder this error happens. I speculate that it has something to do with the ...
0
votes
0
answers
13
views
module 'popenv.core' has no attribute 'project'
Trying to assist my friend set up a new Django/Python project remotely. They've set up a virtual environment on their Windows machine using Linux, and it throws the following error when trying to ...
-1
votes
0
answers
19
views
Flask error/trouble initializing flask: how to correctly import flask in python?
I have been working on resolving this problem for about a day now, but I have not figured it out. So I sincerely appreciate any help or feedback you may give.
Basically, I am trying to just import ...
0
votes
0
answers
9
views
Poetry upgrade --preview fails with error "ModuleNotFound no module named 'virtualenv.run' "
I'm trying to upgrade Poetry to 1.2.0b1 to fix some critical Windows 10 issues related to chaching.
However, running poetry update --preview on gitbash results in:
$ poetry update --preview
...
0
votes
2
answers
26
views
how to change numpy version with miniforge
I have installed miniforge on my mac , in that using a 'local env' on jupyter notebook. I can't change the numpy version (need to downgrade to 1.19.5) on this kernel, have tried:
(1)pip install numpy==...
0
votes
1
answer
42
views
Where to locate virtual environment installed using poetry | Where to find poetry installed virtual environment
I installed poetry using the following command:-
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
To know more ...
0
votes
0
answers
15
views
shared lib across multiple nox virtual env in python
Each service in our theme is currently managed by a different nox file to run the unit tests for each service.
The problem I'm facing is that it is taking too much time to pip install all the packages ...
0
votes
0
answers
11
views
How to copy not existing pip package from one to another virtual env
I have a very old and very big project. It runs on Python 2.7 and it uses Django 1.4. The virtual enviroment which is used has a few packages which do not exists any more.
Now I need to run that ...
0
votes
0
answers
15
views
How to create a python environment on an offline server (Server doesn't have PIP, YUM, APT-GET)
Hi All,
I am struggling with creating a python environment on a server that has no access to open internet. How can I add a virtual environment on that server. Any suggestion would be appreciated.
...
-1
votes
0
answers
22
views
Cannot activate virtual environment -- Scripts Directory missing
When I create a virtual environment I do not get the Scripts directory within the venv directory, so I cannot activate the virtual environment. Anyone know a fix to this, I am running windows 10 and ...
1
vote
1
answer
46
views
No module named 'cartopy' + Concepts
I am working through the tutorial on this webpage here in a Jupyter notebook on a Mac: https://towardsdatascience.com/kriging-the-french-temperatures-f0389ca908dd. Near the end of the exercise, I ...
0
votes
0
answers
11
views
Pip-Unable to create process using inside virtualenvironment
Unable to create process using
I'm able to use pip outssde of the virtual environment but when I activate the VE and use the pip it showing the error=(try) C:\Users\Jumaira Hadji Assim\Desktop\Devz\...
0
votes
1
answer
74
views
create virtual environment using pipenv
i want to have two version of a module, one version in pip(e.g:newer version) and the other(e.g: older version) in pipenv, but when i install a package using pipenv, it will also works with pip, i don'...
0
votes
1
answer
25
views
What does Python Virtual Env "activate_this.py" actually do?
I'm working on a python CLI project that, unfortunately, is a little complex on the virtual environments side, as it has to deal with multiple ones.
In my quest to get my tool to work properly and ...
1
vote
0
answers
72
views
SyntaxError when pip install pip ( def read(rel_path: str))
when using pip I get the following warning:
$ pip install pip
Requirement already satisfied (use --upgrade to upgrade): pip in /usr/lib/python2.7/site-packages
You are using pip version 8.1.2, however ...
2
votes
5
answers
134
views
Transfer a django project to another machine
This is a beginner question, but I haven't found the answer. I'd like to transfer my django project from virtual machine with Ubuntu 18.04 to another virtual machine with Ubuntu 18.04.
This is the ...
0
votes
0
answers
23
views
VS Code Does Not Recognize Site Packages in Virtual Env With Homebrew Python
I am using VS Code and I am selecting the python interpreter (via. CMD + Shift + P) from within my virtual environment folder (~/Python_Envs/dev/bin/python), created via python -m venv Python_Envs/dev....
0
votes
1
answer
37
views
activating virtual environment not working
On my server (digitalocean droplet), when I activate my virtual environment, it seems something is not working. I say the because:
It does not give me the virtual environment name inside paranthesis ...
-1
votes
0
answers
31
views
How to fix ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: when installing python packages on Zorin 16
How to fix ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: when installing python packages on Zorin 16.
I was installing postgresql's psycopg2 to connect my ...
0
votes
0
answers
13
views
Created a virtual environment 'test' in my windows command prompt, but workon test not working in visual studio code? How to fix?
Error: PS C:\Users\ARYAN\projects\project1> workon test
workon : The term 'workon' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the ...
0
votes
1
answer
23
views
Poetry issue with pyproject.toml "Poetry could not find a pyproject.toml file in D:\..."
I am trying to create a virtual environment with poetry, following the instructions given in Poetry Basic Usage
My problem is the following:
I use the script: poetry new poetry-demo
And this ...
0
votes
0
answers
11
views
Where does poetry store virtualenvs on macOS 12?
I want to clean out everything and start again from scratch so I need to uninstall all of my poetry environments. I'm running the latest version of Python 3.10 on macOS 12.
Where are they located and ...
0
votes
0
answers
60
views
Python interpreter not linking with PyCharm virtual environment
Problem:
When trying to associate a new version of Python to a PyCharm project by creating a new virtual environment the following error message is reported, and the new python interpreter is NOT ...
0
votes
0
answers
15
views
python virtualenv cant seem to find modules even though they've already been installed
I am trying to run my python app on my website, and so I've created a virtual environment for all of the packages, and I've correctly installed all of the packages I need. When I check on the file ...
0
votes
0
answers
30
views
No module name jsonpickle even though its installed in the correct folder
I have tried to run my python app on my website, but I get the error
"No module named jsonpickle"
even though I have jsonpickle installed. I even found the file path, and jsonpickle is there,...
0
votes
0
answers
10
views
How do you actually CLONE and reconfigre/reindex python interpreter?
i have been looking the web dry for ways to CLONE a python interpreter or project and then reconfigure it to the new project and interpreter.
Is there anybody who knows how to do this?
So the problem ...
0
votes
1
answer
29
views
A project's three module rely on three different virtual environment
Now I have a project and I think it can be divided into three different modules like below.
project
│ README.md
│
└───flask_web
│ └───app_folder
│ | └─── ...
| | └─── ...
| | | ...
0
votes
1
answer
23
views
Moving .pyenv folder to another partition, symlinking
This question is related to programming environment setup for python.
I have run out of space on my home folder on Ubuntu. Python shims are stored in their default location ~/.pyenv and taking up a ...
0
votes
0
answers
25
views
Peculiar dynamic when trying to copy project, and start it through subprocess any ideas?
i stumpled upon an interresting situation when i was trying to clone a project with shutil copytree, and just generally copying my project to make a clone project.
So the idea is that i wanted to ...
0
votes
0
answers
15
views
How to make .ipython\profile_default\startup folder available for vitual environments
I have some custom script file in my ".ipython\profile_default\startup" folder and i want my virtual environments to be able to make use of this, but it does not. Does anyone happen to know ...
0
votes
0
answers
33
views
Difference between 1. Poetry add <package> vs 2. a) Poetry shell then b) pip install <package>
I am wondering what is the difference when we do poetry add <package> vs spawning a shell in the virtual env using poetry shell and then installing using pip pip install <package>. One ...
1
vote
1
answer
14
views
Does Virtual Environment changes access permissions globally?
I have changed some files' user permissions through Linux terminal using chmod. I just realized that I was working in a virtual environment throughout. Does this mean that the changes have been ...
0
votes
0
answers
27
views
ImportError: cannot import name 'total_ordering' from 'functools' error in Pycharm virtual env
All of a sudden i am getting below error while running my code in Pycharm. Earlier It was working fine. I tried changing the interpretar from virtual en to base interpreter but no resolve
Traceback (...
-3
votes
0
answers
20
views
Why does PyCharm still use the old version of pip for new projects when the base interpreter already has the newer version?
Whenever I create a new project in PyCharm with virtualenv and with the base interpreter
the old version of pip in the new project venv is automatically installed
, when in reality, in the base ...
0
votes
0
answers
26
views
Problems executing files through venv python local imports cause errors [duplicate]
Im having some issues with virtual enviroments, i have a pycharm project where i want to launch it from my terminal, however when launching the project it seems like my internal modules are not found.
...
0
votes
1
answer
23
views
Pyemd module installed in virtual environment but Module not found error?
I installed pyemd within my virtual environment. However, when I got to Jupyter Notebook or Python within the command line it says ModuleNotFoundError: No module named 'pyemd'.
. venv-new/bin/...
0
votes
0
answers
26
views
Linux close virtualenv after exiting terminal
I recently created a virtual environment for running a website using the flask library. However, I decided not to use a virtual environment and accidentally closed the terminal I ran it with (I used ...
0
votes
0
answers
20
views
Virtual Environment Being Ignored or Overridden
I have been having an issue where pip and python seem to be ignoring the fact that they are in a virtualenv. I found the following:
pip command in virtualenv ignored in favour of system pip command
...
0
votes
0
answers
12
views
Visual Studio Code / create Git Project with virtual environment
I wonder when working with vitual environment, is it better to use git before running activate script ?
.venv/scripts/activate
In early days, I used to send to my repo all the python libraries, ...
0
votes
1
answer
27
views
requirement.txt error in virtual environment
I am running
pip freeze > requirements.txt
instead of making requirements.txt my virtual environment is making only requirements file which is empty. Any advice?
0
votes
0
answers
31
views
Why are these import errors occurring when running python scripts from cmd or windows task scheduler, but not anaconda?
I am encoutering import errors, but only when running my python scripts from cmd or windows task scheduler (effectively the same issue I assume). I have researched answers already and attempted ...