3

There is no directory call Scripts

There is no directory called Scripts. How can I activate?

Please help me to solve this.

martineau
  • 119,623
  • 25
  • 170
  • 301

3 Answers3

4

Check the line "Home" in pyvenv.cfg, it can differ from your python interpreter location. In my case it was home = C:\msys64\mingw64\bin, so this caused another project structure without the "Scripts" directory.

You can configure interpreter location in PATH variables and try to create a virtual environment again.

RiveN
  • 2,595
  • 11
  • 13
  • 26
sm_a_r
  • 41
  • 3
  • This helped me track down the problem. After a quick uninstall/reinstall, all is well. Thanks! – no-one Mar 09 '23 at 21:45
1

check bin folder, to activate Virtual environment, theres should be a script under it

you can simply use cmd to activate it by following command

.\Activate

Tao Hu
  • 11
  • 2
0

I faced the same issue but after lots of research, i found some outcomes which i want to share with you... Please follow my steps sequentially:

  1. python3 -V // check the version of python like 3.8.1
  2. sudo apt install python3-venv // for installing the latest virtual environment library
  3. python3 -m venv my-project-env //create virtual environment, where you can change name of my-project-env into your requirement name..
  4. source my-project-env/bin/activate // activate your evnironment

NOTE: point no-4, please add source word in your command while run point no 4 commands on your terminal.

please refer to my attachment pic ...

enter image description here