Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Post Timeline

Commonmark migration
Source Link

You need to be in the same directory of the file you want to run then use: pipenv run python train.py

Note:

You may be at the project main directory while the file you need to run is inside a directory inside your project directory

If you use django to create your project, it will create two folders inside each other with the same name so as a best practice change the top directory name to 'yourname-project' then inside the directory 'yourname' run the pipenv run python train.py command

You need to be in the same directory of the file you want to run then use: pipenv run python train.py

Note:

You may be at the project main directory while the file you need to run is inside a directory inside your project directory

If you use django to create your project, it will create two folders inside each other with the same name so as a best practice change the top directory name to 'yourname-project' then inside the directory 'yourname' run the pipenv run python train.py command

You need to be in the same directory of the file you want to run then use: pipenv run python train.py

Note:

You may be at the project main directory while the file you need to run is inside a directory inside your project directory

If you use django to create your project, it will create two folders inside each other with the same name so as a best practice change the top directory name to 'yourname-project' then inside the directory 'yourname' run the pipenv run python train.py command

Source Link
Abdel-Raouf
  • 770
  • 1
  • 8
  • 20

You need to be in the same directory of the file you want to run then use: pipenv run python train.py

Note:

You may be at the project main directory while the file you need to run is inside a directory inside your project directory

If you use django to create your project, it will create two folders inside each other with the same name so as a best practice change the top directory name to 'yourname-project' then inside the directory 'yourname' run the pipenv run python train.py command

lang-py

AltStyle によって変換されたページ (->オリジナル) /