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.pycommand
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.pycommand
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.pycommand
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.pycommand