Python Forum
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting up virtual environment
#2
You are way of as usual Wink
It's because of you error message in your first post in this Thread.
I asked if the same error(It's just Warning) happens in a virtual environment.
I think code is what @Larz60+ help you with in a mega Thread?

When i say test in a virtual environment,i mean make a environment the install Requests and BeautifulSoup.
So it don't interfere way OS has installed.

Eg all is done from command line(cmd).
# Make environment 
E:\div_code>python -m venv my_env

# Cd in 
E:\div_code>cd my_env

# Activate
E:\div_code\my_env>E:\div_code\my_env\Scripts\Activate

# Check pip see that use environment
(my_env) E:\div_code\my_env>pip -V
pip 10.0.1 from e:\div_code\my_env\lib\site-packages\pip (python 3.7)

# Install
(my_env) E:\div_code\my_env>pip install beautifulsoup4 requests lxml
......

(my_env) E:\div_code\my_env>
Then you place your script in my_env folder and run with environment Activate python my_code.py.
Reply


Messages In This Thread
Setting up virtual environment - by tjnichols - Sep-12-2018, 04:30 PM
RE: Setting up virtual environment - by snippsat - Sep-12-2018, 05:59 PM
RE: Setting up virtual environment - by tjnichols - Sep-12-2018, 07:08 PM
RE: Setting up virtual environment - by tjnichols - Sep-12-2018, 10:05 PM
RE: Setting up virtual environment - by tjnichols - Sep-13-2018, 03:04 PM
RE: Setting up virtual environment - by snippsat - Sep-13-2018, 05:00 PM
RE: Setting up virtual environment - by tjnichols - Sep-18-2018, 05:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  virtual environment is not activating in centOS Anu 5 3,652 Dec-16-2019, 10:48 AM
Last Post: Anu

Forum Jump:

User Panel Messages

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