Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
requirements file
#1
pip freeze > requirements.txt
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/developmen...-2-support pip 21.0 will remove support for this functionality.

This is the error I'm getting in my python shell when I try to create a requirements file? I'm on mac
Reply
#2
This is not error, but Depreciation warning. And as it says - python 2 is dead, it reached end of life January 1st 2020. Unless you have really, really good reason (and being a newbie I doubt you do) you should be working with python 3. Latest stable version is 3.9
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
I have python 3.9 thats why I'm confused as to why I'm getting this error.
Reply
#4
Being on macbook I guess you have both python2 and python3. Check which version you use. Not a mac user, but usually python command invoke python2, while python3 and pip3 command invoke python3 and pip for python3
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#5
Are you sure you don't have both? What happens if you try running pip3 instead? You can also run it with python, i.e. python -m pip (docs here).
Reply
#6
(Nov-06-2020, 05:21 AM)tdwinfre Wrote: I have python 3.9 thats why I'm confused as to why I'm getting this error.
Read the link i posted in your other Thread .
The right and wrong way to set Python 3 as default on a Mac
You set alias to your python 3.9 version,default when type python it will point to 2.7(that comes with Mac).
Reply
#7
I already have pip installed I was using that original code to build a virtual environment.
Reply
#8
I went to the link I'm to trying figure out what to do I downloaded pip install some package. I'm just trying to understand.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with code / audio is playing randomly, not matching csv requirements Daniel_kcr 2 579 Sep-07-2023, 05:09 PM
Last Post: deanhystad
  when package built, requirements not installed sabuzaki 1 703 Apr-07-2023, 09:01 AM
Last Post: sabuzaki
  What to do when the requirements.txt file does not work Led_Zeppelin 2 6,170 Nov-04-2021, 06:51 PM
Last Post: snippsat
  Examples of Customer requirements ComputerAstronaut 1 1,807 Dec-08-2020, 03:22 AM
Last Post: Larz60+
  How to allow user input only if certain requirements are met vininhosts 3 2,288 May-28-2020, 06:15 PM
Last Post: micseydel
  Requirements for html5print module KipCarter 6 5,097 Mar-16-2020, 03:12 PM
Last Post: KipCarter
  google-auth requirements.txt strange behavior randalpinto 3 3,672 Dec-21-2018, 02:03 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020