How to Resolve NotFound Errors in the Source Command in Enabling a Virtual Environment

Asked 2 years ago, Updated 2 years ago, 83 views

python-mvenv<virtual space name>

Create a Virtual Space in

source<virtual space name>/bin/activate 

What should I do if the source command becomes NotFound when I try to type and enable it?
Please let me know if you understand.

python python3 python-venv

2022-09-30 11:22

1 Answers

The source command does not exist in shells such as dash (the shell used in recent Ubuntu /bin/sh.Use the . command instead.Or use bash or zsh instead of dash.

Also, if you are using a Windows environment, the commands are different.https://docs.python.org/3/library/venv.html has a platform-specific list for your reference.


2022-09-30 11:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.