How to install pytest in windows 10 - 64 bits, python3

Asked

Viewed 3,909 times

1

I need to install pytest, it was suggested that I run the command on cmd:

Pip install -U pytest

but of error:

'Pip' is not recognized as an internal command or external, a operable program or a batch file.

Someone can instruct me how to install, thank you!

3 answers

3


If you don’t have the Python folder in your variáveis de ambiente, you need to go on prompt from command to Python folder.

For example:

C: Users danie Appdata Local Programs Python Python35-32

Inside it is a folder of Scripts, and within this the pip - there you can execute the command.


That said, I suggest you run the installer again and modify the installation to include the Python in their variáveis de ambiente:

instalador do Python

  • I got it, bro, thanks!

0

Depends on your version of Python, version 3, when >3.4 (Released March 2014) and version 2 if >2.7.9 (Released December 2014), already comes with Pip installed. View the Pip documentation.

If your version does not have this interval quoted, I suggest you try to upgrade, or create a virtual environment with virtual env or, my favorite, Anaconda. If it is not possible to make updates in the environment, just try to install with the script get-Pip.py.

python get-pip.py

-1

Type the following command: python -m pip install -U pytest

Browser other questions tagged

You are not signed in. Login or sign up in order to post.