Questions tagged [virtual-environment]
544 questions
2
votes
1 answer
Import module to virtual environment on airflow
I have a packaged DAG where I store my module in sub-folder.
I'm using PythonVirtualenvOperator and want to access this module from the virtual env.
The folder system -
dags/
packaged_dag.zip/
dag.py
package/
…

Stav Hacohen
- 99
- 9
2
votes
1 answer
Rstudio in anaconda environment: how should I install R packages?
I create a new environment with anaconda and install Rstudio. My question is: how should I install R packages now? Should I use Rstudio --> install, or go through conda install... from the terminal?
I just tried to install the desolve package…

Riccardo Delli
- 78
- 8
2
votes
1 answer
Error PackagesNotFoundError: The following packages are not available from current channels for Pypi packages
I am trying to create a conda env
conda create --name sf-prj-final --file requirements.txt
But I have encountered error says:
PackagesNotFoundError: The following packages are not available from current channels:
- grpcio==1.31.0=pypi_0
-…
user12981435
2
votes
0 answers
How do I create a new python virtual environment with certain python version?
I have seen many solutions for this but I didn't get a satisfying answer for this. I have created a python virtual environment link
as following
pip3 install virtualenv //first installed virtualenv
python3 -m venv name_of_virtual_env
I have the…

Saurav Rai
- 2,171
- 1
- 15
- 29
2
votes
1 answer
Ignore Conda virtual environments in VSCode
I have Python versions and virtual environments managed by Pyenv. I use them to work on projects using Visual Studio Code.
I also have Conda (from Anaconda package) installed to run Jupyter notebooks. I never want to use conda environments in VSCode…

Den Kasyanov
- 870
- 2
- 11
- 27
2
votes
2 answers
Python Pipenv Install: EnvironmentError: Permission Denied
Trying to install python-decouple inside a pipenv shell:
(projectname) username@host: pipenv install python-decouple
But I'm getting this following error:
Installing python-decouple…
Error: An error occurred while installing python-decouple!
Error…

itsafox
- 71
- 2
- 5
2
votes
0 answers
Standard practice for writing Conda environment file with support for TensorFlow CPU/GPU
I would like to add an environments.yml file to my repo. Since I don't know whether the end user will be using the CPU or GPU version of TensorFlow, I am unsure how to proceed. My thoughts:
I could create two environment files, each one for…

Tim Hargreaves
- 292
- 3
- 11
2
votes
1 answer
Activating a Python virtual environment and calling python script inside another python script
I am using pipenv for managing my packages. I want to write a python script that calls another python script that uses a different Virtual Environment(VE).
How can I run python script 1 that uses VE1 and call another python script (script2 that uses…

milad
- 204
- 3
- 12
2
votes
1 answer
Create a virtual environment with python version 2.7 with existing version as 3.7
I want to create a virtual environment with python version 2.7 on windows, however, after installing virtualenv and running python 2.7 -m venv project
I am receiving an error RuntimeError: failed to find interpreter for Builtin discover of…

shrekh
- 161
- 4
- 14
2
votes
1 answer
Visual Studio Packages Python
I installed a self made package sdm_plugin_common into conda base. However , Visual Studio Code does not recognize the syntax, see below
My environment is activated to conda base:
However I do not have issues when executing the code. How could I…

JPV
- 1,079
- 1
- 18
- 44
2
votes
0 answers
Should I need separate virtual environments for every separate Django project
Does every Django project needs a separate virtual environment? Can't I use one of my exciting virtual env ? If I can't, then what's the problem?

Ahnaaf Al Rafee
- 373
- 5
- 13
2
votes
0 answers
Moving Conda Environment to a computer with no Internet Access
I'm trying to reproduce an environment that I've created on my laptop with all the necessary packages to another laptop with no internet access (But Anaconda is already installed on it).
I'm following the instructions form this link…

Miriam Arbaji
- 319
- 1
- 3
- 17
2
votes
0 answers
Virtualenv environment would not activate in CMD on Windows 10
I have tried this with python 3.7 as well as python 3.8.
Installed virtualenv with pip and then created a virtual environment with following command:
virtualenv abc
I cd to the Scripts folder and run the following command and please enter... the…

Jagatpal Verma
- 21
- 3
2
votes
0 answers
How to import someone else's conda environment with all of the dependencies
I'm trying to follow along with this guide for machine learning. The github post provides a .yml file that I'm supposed to use to make a conda environment, but every time I try conda env create -f deeplearningproject_environment.yml it says I'm…

Drake Z.
- 21
- 2
2
votes
1 answer
best way to export anaconda environment but also include custom made packages?
I am developing a python package at work and intend to make it available to everyone, and it will come along with an environment.yml file that will set up the anaconda environment upon install so everything works out of the box.
I know I can export…

Derek Eden
- 4,403
- 3
- 18
- 31