virtual-environment

Python is in conda env, but has not been activated in Windows virtual env

a 夏天 提交于 2020-06-14 04:32:15
问题 I created a Windows (10) Python virtual environment (env3.7.3). When I open a cmd window activated in the virtual env, I get the following warning message when starting Python in the virtual env: (env3.7.3) C:\Users\redex\OneDrive\Documents\Education\Machine Learning-Ng Python\Exercise7>python Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32 Warning: This Python interpreter is in a conda environment, but the environment has not been

Virtual Environment from PyCharm vs. Command Line

孤人 提交于 2020-05-17 06:25:08
问题 I am fairly new to creating Python applications. I have fooling around with some small tutorials and applications using PyCharm and have always created a new project using the Virtualenv environment, ending up with a "venv" folder under my project folder. I have not had any problems with this, but then again I have not done any large projects. However, I have been wanting to learn Flask want to try to create a new Flask project the proper way. I see in many tutorials that people are creating

Python venv not creating virtual environment

好久不见. 提交于 2020-01-24 06:37:08
问题 I'm trying to create a virtual environment for my current Django project using python3 -m venv env however the command doesn't create any directory with bin/include/lib folders. What exactly am I missing here? 回答1: I was having this same problem. I was able to get venv working by uninstalling Python and reinstalling it (I'm using the Anaconda distribution). The py -m venv test command still doesn't have any output after running it, but now it creates a folder for me and I can activate the

Python venv not creating virtual environment

随声附和 提交于 2020-01-24 06:37:05
问题 I'm trying to create a virtual environment for my current Django project using python3 -m venv env however the command doesn't create any directory with bin/include/lib folders. What exactly am I missing here? 回答1: I was having this same problem. I was able to get venv working by uninstalling Python and reinstalling it (I'm using the Anaconda distribution). The py -m venv test command still doesn't have any output after running it, but now it creates a folder for me and I can activate the

There is no activate when I am trying to run my virtual env

China☆狼群 提交于 2020-01-01 04:19:32
问题 1) I installed virtualenv using pip. 2) I ran the command virtualenv venv 3) Then I ran source venv/bin/activate but it says that there is no such file or directory. When I cd into venv/bin I find 3 things - python, python 2.7, and python 3.5. Does anyone know the problem? 回答1: i have had the same problem. and what i did is just run the command virtualenv env again. And then more files were generated under directory env/bin, including the activate file. it's so weird. maybe you can have more

Configuring Python Virtual Environment to use Python 3

久未见 提交于 2019-12-30 15:43:03
问题 I am learning Django. I installed two different versions of python on my laptop, 2 and 3. I configured my Laptop to use Python 3, so when I check version using the command line, I got this output. Then, I installed the Django and Python Virtual Environment following this link. I could install the Django and Virtual Environment successfully. But my virtual environment is using the python 2. When I check the version in the virtual environment, I got this output. So, how can I configure that

Do I need to install Jupyter notebook in every virtual environment?

老子叫甜甜 提交于 2019-12-23 16:44:50
问题 I isolate my data science projects into virtual environments using pipenv . However, running a Jupyter notebok does not access the local environment and uses the default IPyKernel. I've seen that you can register virtual environments from within the environment, but this requires installing the ipykernel package which itself requires Jupyter! Is there anyway to avoid this and just use a single Jupyter install for all virtual environments? 回答1: Generally, you'd install jupyter once and do the

With Python 2.7.15 on a MAC console, virtualenv creates an environment with a different version of Python

♀尐吖头ヾ 提交于 2019-12-22 18:46:20
问题 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$ python** **Python 2.7.15** (default, May 1 2018, 16:44:14) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> exit() dhcp-18-57:Wakeup6 jbs$ virtualenv env

Where is the standard library in python virtual environment?

ぐ巨炮叔叔 提交于 2019-12-13 03:48:14
问题 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 standard library modules in my python script when I switch to use this virtual environment. So how does venv work? Does the newly created virtual environment just use the standard library of the system python? If so, what if I want to create a

pip install packages failing: Invalid requirement & No matching distribution

雨燕双飞 提交于 2019-12-12 10:27:09
问题 I am trying to install packages in a python 3.6.3 virtual environment. I keep getting errors. I have tried pip with --ignore-installed flag like: pip install -I -r package-list.txt . Here is part of what I have in package-list.txt . # This file may be used to create an environment using: # $ conda create --name <env> --file <this file> # platform: linux-64 _libgcc_mutex==0.1==main appdirs==1.4.3==pypi_0 asn1crypto==0.24.0==py36_0 beautifulsoup4==4.7.1==py36_1 blas==1.0==mkl bzip2==1.0.6=