0

I want to install the pymongo package using the command pip install pymongo and it displays the message '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 Requirement already satisfied: pymongo in c:\python27\lib\site-packages (3.9.0)' Could you please suggest any solution so i can install this package ? thanks

Gtari Abir
  • 69
  • 3
  • 12

2 Answers2

0

It is saying that the package is already satisfied

Can you check this folder

c:\python27\lib\site-packages\pymongo
1__
  • 1,511
  • 2
  • 9
  • 21
0

You will first need to change the environment variable like here:

Answer from https://stackoverflow.com/a/51931468/11079758

Windows 10

  1. Type "System" into the search bar to go to system settings in the control panel (Control Panel\All Control Panel Items\System)

  2. Click "Advanced System Settings" -> 2Environment Variables2

For User Variables:

  1. Highlight the row for "Path" by clicking on it and then click the "Edit" button
  2. Highlight by clicking the version of python you want to remove from your environment variables and then click the "Delete" button.

Repeat steps 3 and 4 for System Environment Variables.

  1. Close all the windows by clicking the "Ok" buttons
  2. Restart your machine
1__
  • 1,511
  • 2
  • 9
  • 21