Questions tagged [virtual-environment]
544 questions
2
votes
1 answer
How to use a custom Openai gym environment with Openai stable-baselines RL algorithms?
I've been trying to use a custom openai gym environment for fixed wing uav from https://github.com/eivindeb/fixed-wing-gym by testing it with the openai stable-baselines algorithms but I have been running into issues for several days now. My…

Bonie
- 25
- 1
- 6
2
votes
1 answer
Jupyter & Terminal have different Conda packages
I am trying to import a module (Selenium and getting the error...
"ModuleNotFoundError: No module named 'selenium'"
I am using a conda virtual environment called "py3-env'.
As you can see I have the env activated (run from Terminal)
(py3-env)…

Axle Max
- 785
- 1
- 14
- 23
2
votes
1 answer
Cannot create new conda environment with same python version as 'base'
I wish to create new environment for a new project so that I can install various packages in it. And those packages will not then affect my base environment.
My base is at 3.6.6
I want my new environment should also be of same python version. But…

Yogesh Haribhau Kulkarni
- 455
- 1
- 4
- 18
2
votes
0 answers
How to test/develop packages in R in isolated environment? that is, independent of the packages already installed in the system
Here is a example situation: I have a tidyr v0.8.0 already installed, but let's say I want to tinker with a tidyr v0.8.2 without affecting my current system. How do you do this?
In python, I can make a virtual environment or conda environment and…

Alby
- 5,522
- 7
- 41
- 51
2
votes
2 answers
Pip installed package not visible in conda environment
I am working in a conda environment (called python36)
I have installed a package 'bctpy' while in this environment via
pip install bctpy
When I now try to import this module (while still in this environment)
import bctpy
I receive the…

RobMcC
- 392
- 2
- 7
- 20
2
votes
1 answer
conan.io: call exe with virtual run environment
I have a hello tool which contains only exe files (without source).
Hello tool structure:
bin
helloBin.exe
helloRoot.exe
conanfile.py
conanfile.py content:
class ToolHelloConan(ConanFile):
name = "ToolHello"
version = "0.1"
settings =…

nicole
- 91
- 10
2
votes
2 answers
With Python 2.7.15 on a MAC console, virtualenv creates an environment with a different version of Python
Here is an extract of my console in a Mac, as you can see the Python on the console is 2.7.15 but on the environment it becomes 2.7.10 which is an older version... any help on why and how to fix it would be most welcomed!
dhcp-18-57:Wakeup6 **jbs$…

Brian Barcelona
- 168
- 19
2
votes
0 answers
how to start spyder in a new conda environment?
I have a .yaml conda environment file, which contains a few packages
name: myEnv
channels:
- anaconda
- conda-forge
- defaults
dependencies:
- numpy=1.12.1=py27_0
- pandas=0.20.1=np112py27_0
- scikit-learn=0.18.1=np112py27_1
# and more
Then I have…

00__00__00
- 4,834
- 9
- 41
- 89
2
votes
0 answers
Python: can't open file 'scripts/setup.py': [Errno 2] No such file or directory
I am using some instructions from here, to install and run python scripts/setup.py, to start a server for a project I am working on:
https://docs.google.com/document/d/11IPqZcDcLTd2mtYaR5ONpDxFgL9Y1nMNTDvEarST8Wk/edit#
Specifically, I am using…

josh
- 145
- 1
- 11
2
votes
1 answer
Configure Python Path in Visual Studio Code with venv running from bash on Windows
I have a virtual environment set up inside bash for Windows (Ubuntu) and VS Code installed (Windows). The Python project runs well inside the venv in bash but I would like to now debug it through Visual Code.
I'm trying to set the python.pythonPath…

Tushar
- 41
- 2
- 6
2
votes
1 answer
Conda incomplete creation of virtual environment after deleting previous environment directory
I am new to Python/Linux. I was trying to set up a new virtual environment using conda. First I tried creating the virtual environment using
conda create -n atomate_env
I realized that this creates the virtual environment in the anaconda…

Anando
- 23
- 3
2
votes
1 answer
Where is the standard library in python virtual environment?
I'm using Ubuntu system with python 3.5 installed by default.
When I use the venv module to create virtual environment, I can't find the standard library in my virtual environment but only the binary file for python interpreter. However I can import…

Gödel
- 592
- 4
- 21
2
votes
2 answers
Flask doesn'T work in Virtual Environment
I have installed venv
sudo pip3 install virtualenv
I have activated it
source venv/bin/activate
I have installed Flask, while it was activated
sudo pip3 install Flask
But it doesn't work as soon as I run python3 and then use
import…

sunwarr10r
- 4,420
- 8
- 54
- 109
2
votes
1 answer
Refresh or detect conda environments
I am working in a business environment with different disks, of which on of them is my personal space (e.g. H:\). I created a new conda environment on that disk, and it was listed in the conda info --envs. Today I rebooted my machine and the conda…

Mathias711
- 6,568
- 4
- 41
- 58
2
votes
0 answers
How does a Python command like "pserve" determine which virtual environment to run from?
I'm using Windows.
I successfully ran the following command in command prompt:
C:\projects\quick_tutorial\env\Scripts\cc_starter>pserve development.ini --reload
The pserve application can be found in at least 2 locations on my…

Wronski
- 1,506
- 3
- 18
- 37