How to install pytest on windows 10 - 64 bit, python3

1

I need to install pytest, it was suggested that I execute the command in cmd:

  

pip install -U pytest

but the error:

  

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

Someone can instruct me how to install, thanks!

    
asked by anonymous 29.04.2017 / 20:18

3 answers

3

If you do not have the Python folder in your variáveis de ambiente , you need to go in prompt of command to the Python folder.

For example:

  C: \ Users \ danie \ AppData \ Local \ Programs \ Python \ Python35-32

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

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

    
29.04.2017 / 20:28
0

It depends on your version of Python, version 3, when> 3.4 (released March 2014) and version 2 is> 2.7.9 (released December 2014), already comes with installed pip. View the pip documentation .

If your version is not within this range, I suggest that you try to upgrade, or create a virtual environment with virtual env, or my preferred Anaconda . If it is not possible to make updates to the environment, try to install with the get-pip.py script.

python get-pip.py
    
29.04.2017 / 20:34
-1

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

    
13.04.2018 / 20:02