Python Forum
Virtualenv and an infinitely spooling interpreter?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Virtualenv and an infinitely spooling interpreter?
#3
As mention over use the build in venv,to make virtual environment.
None of your picture link works.

Basic install Python 3.6/3.7 and pip installation under Windows.
From start all in done in cmd,i use cmder daily and not cmd.
# Check python version
E:\div_code>python -V
Python 3.7.3

# Check pip
E:\div_code>pip -V
pip 19.1.1 from c:\python37\lib\site-packages\pip (python 3.7)

# Make virtual environment
E:\div_code>python -m venv my_env

# Cd in
E:\div_code>cd my_env

# Activate environment, see after (my_env)  
E:\div_code\my_env>E:\div_code\my_env\Scripts\Activate

# Check pip again,see now that in point to my_env folder
(my_env) E:\div_code\my_env>pip -V
pip 19.0.3 from e:\div_code\my_env\lib\site-packages\pip (python 3.7)

# Will now only install into environment
(my_env) E:\div_code\my_env>pip install requests
Collecting requests .....
Installing collected packages: chardet, certifi, urllib3, idna, requests
Successfully installed certifi-2019.6.16 chardet-3.0.4 idna-2.8 requests-2.22.0 urllib3-1.25.3


# Test that it work
my_env) E:\div_code\my_env>python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import requessts
>>>
>>> requests.__version__
'2.22.0'
>>> exit()
See also this where i explain some more.
Reply


Messages In This Thread
RE: Virtualenv and an infinitely spooling interpreter? - by snippsat - Jul-11-2019, 11:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Installing PIP and setting up virtualenv steveholland68 1 2,307 Aug-08-2019, 05:52 PM
Last Post: snippsat
  python -m venv VS virtualenv kazi380 4 3,044 Jul-17-2019, 08:51 PM
Last Post: Larz60+
  Why is virtualenv not by default relocatable? bpostow 1 2,259 Mar-08-2019, 06:57 PM
Last Post: bpostow
  opencv without virtualenv tony1812 0 3,081 Jan-20-2018, 12:42 AM
Last Post: tony1812
  virtualenv activate.ps1 hash error po20 2 3,848 Jan-13-2018, 09:21 AM
Last Post: po20
  virtualenv on powershell mcmxl22 3 6,432 Feb-08-2017, 06:29 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020