Installation pylinac using pip - deprecation warning Python 2.7.18 & pip 19.3.1

187 views
Skip to first unread message

James Han

unread,
Jun 16, 2021, 9:17:44 AM6/16/21
to Pylinac
Hello All,

I'm looking for help installing. pylinac on Windows 10 Pro (x64) with Anaconda 3, 2021.05, x86_64.

I was able to install pylinac on a personal PC at home and after delay over a course of months with permissions with IT, began installation with a department PC using the same approach.

My process/approach was:
Anaconda with Python 3
then using commandline, created virtual environment using python 2.7.18 (which installs pip 19.3.1).  This I'm sure worked with my PC at home.
However, when running pip on my work PC, it gives me a warning and error messages:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\UserXYZ\.conda\envs\py2\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\UserXYZ\\appdata\\local\\temp\\pip-install-i2azvp\\pylinac\\setup.py'"'"'; __file__='"'"'c:\\users\\UserXYZ\\appdata\\local\\temp\\pip-install-i2azvp\\pylinac\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'c:\users\UserXYZ\appdata\local\temp\pip-install-i2azvp\pylinac\pip-egg-info'
         cwd: c:\users\UserXYZ\appdata\local\temp\pip-install-i2azvp\pylinac\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\UserXYZ\appdata\local\temp\pip-install-i2azvp\pylinac\setup.py", line 3, in <module>
        with open('requirements.txt') as f:
    IOError: [Errno 2] No such file or directory: 'requirements.txt'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.




James Kerns

unread,
Jun 16, 2021, 9:35:32 AM6/16/21
to Pylinac
Hi James, 
       Pylinac has not supported python 2 for a long time. I would try creating a new venv with python 3.6+ and then try again. Let us know if you still have trouble.

Han, James

unread,
Jun 16, 2021, 9:55:33 AM6/16/21
to Pylinac
This message was sent securely using Zix®

Thank you!
It's running.  (Python 3.8.8)

Not sure why I thought I read something about Python(x,y) not working on Python 3 and thought it was necessary to run on an older version.
Thanks again!  


On Wed, Jun 16, 2021 at 9:35 AM James Kerns <jker...@gmail.com> wrote:
CAUTION: This email originated from outside the organization. DO NOT CLICK ON LINKS or OPEN ATTACHMENTS unless you know and trust the sender.


--
You received this message because you are subscribed to the Google Groups "Pylinac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylinac+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylinac/be4ece48-2118-41b8-b3b1-a21145c902f3n%40googlegroups.com.



This message was secured by Zix&#174.
Reply all
Reply to author
Forward
0 new messages