
The PyInstaller installation procedure is carried out by standard python setup tooling, which install package's entry-point scripts into python's Scripts directory. Whether it's a PATH issue or PIP issue, I see no reason to dismiss the issue with an insult regarding someone's experience with package management.īecause this has nothing to do with PyInstaller. pip installs a module into site-packages, and there is no pyinstaller.exe or any other executable file there that I can see. The dismissive comment above notwithstanding, it should be as simple asīut, it's not. I ran: C:\Users\coolt\mymodules>py -3 -m pytest -pep8 vsearch.pyĪnd it ran the test! I still can't make 'py.I'm confused why this was closed. Instead of: C:\Users\coolt\mymodules>py -3 -m pytest vsearch.py = no tests ran in 0.18 seconds =Īnyone have any suggestions for how to fix all of this? I'm struggling here.ĮDIT: I fixed the not getting the test to run issue. Rootdir: C:\Users\coolt\mymodules, inifile: My last attempt gave me this: C:\Users\coolt\mymodules>py -3 -m pytest vsearch.pyĬ:\Users\coolt\AppData\Local\Programs\Python\Python37-32\lib\site packages\pep8.py:110: FutureWarning: Possible nested set at position 1ĮXTRANEOUS_WHITESPACE_REGEX = re.compile(r'') So I tried the 'python' command and it gave me the same error. 'py.test' is not recognized as an internal or external command, operable program or batch file. I tried to then py test my module using pytest but it gave me an error: C:\Users\coolt\mymodules>py.test -pep8 vsearch.py


I then added the file location for both to PATH by editing PATH to include:Ĭ:\Users\CoolT\AppData\Local\Programs\Python\Python37-32\Scripts Then installed pep8 the same way: py -3 -m pip install pytest-pep8 I installed pytest using pip in the command prompt: py -3 -m pip install pytest Today I uninstalled Python 3.6 and gave myself a fresh start with Python 3.7 on Windows 10. The last part of the chapter is running it through Pytest to see if it is pep8 compliant, but I cannot get it to work for the life of me.


I just picked up Paul Barry's Head First Python a few weeks ago to learn the language, and have made it to his chapter on creating modules and sharing them.
