Python Forum
Can Not Activate Environment
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Not Activate Environment
#7
bowlofred Wrote:How so? Shouldn't the activation script provide the path?
No when outside of environment folder must specificity path to folder.
# Can not find it
tom@tom-VirtualBox:~$ source bin/activate
bash: bin/activate: No such file or directory

# If give path ok
tom@tom-VirtualBox:~$ source my_env/bin/activate
(my_env) tom@tom-VirtualBox:~$ deactivate
tom@tom-VirtualBox:~$
Same on windows but there there is no source,so then just give path to activate.bat on the environment that want to activate.
Let say i'm in root C:\ and want to activate a environment on G:\ drive.
C:\
λ G:\div_code\flaskex_env\Scripts\activate.bat

(flaskex_env) C:\
λ pip -V
pip 21.1.1 from g:\div_code\flaskex_env\lib\site-packages\pip (python 3.9)

(flaskex_env) C:\
λ deactivate
C:\
Reply


Messages In This Thread
Can Not Activate Environment - by hammer - Mar-04-2022, 02:10 PM
RE: Can Not Activate Environment - by snippsat - Mar-04-2022, 02:45 PM
RE: Can Not Activate Environment - by bowlofred - Mar-04-2022, 04:29 PM
RE: Can Not Activate Environment - by hammer - Mar-05-2022, 02:42 AM
RE: Can Not Activate Environment - by deanhystad - Mar-05-2022, 06:13 AM
RE: Can Not Activate Environment - by bowlofred - Mar-05-2022, 09:19 AM
RE: Can Not Activate Environment - by snippsat - Mar-05-2022, 10:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python win32com.client: What are the syntax to open exe file & activate its window? JaneTan 0 4,249 Oct-14-2020, 09:09 AM
Last Post: JaneTan
  Activate Winodw/ Set focus biprabu 0 1,680 Sep-07-2020, 04:05 AM
Last Post: biprabu
  Auto activate conda env in Pycharm terminal ntuttle 0 4,795 Mar-08-2019, 03:56 PM
Last Post: ntuttle
  virtualenv activate.ps1 hash error po20 2 3,852 Jan-13-2018, 09:21 AM
Last Post: po20
  How do I activate my script when another program opens? jhave_21 3 3,851 Nov-23-2017, 08:29 AM
Last Post: heiner55
  Help to activate the "USB Modem" with Python karlo123 4 4,921 Sep-17-2017, 08:40 PM
Last Post: sparkz_alot
  Activate Virtual Environment and Help to get started with Python Adelton 4 7,248 Feb-14-2017, 06:11 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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