Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setting up pipenv
#1
Dear all,

I am doing the CodeCademy Python 3 course and there is a video explaining how to install pipenv. I am stuck thow because my setup seems to be entirely different and a lot of key concepts are actually not well explained.

So I installed Python 3.x with Anaconda.Navigator and I also have Spyder 4.1.5. When I tried to find out which exact version of Python I have by opening python command line and entering "python --version" I get the error "name "python" is not defined". Which is odd because I obviously have Python. I also tried to install pipenv from Spyder by entering "pip install --user pipenv" which seems to work smoothly (I get something like "Requirement already satisfied: pipenv in .\site-packages (2020.11.15)").

However, when I try to start pipenv, I also get an error message "NameError: name 'pipenv' is not defined".

This is all very confusing.

Best,
Toby
Reply
#2
(Jan-13-2021, 05:07 PM)tobiasfw Wrote: So I installed Python 3.x with Anaconda.Navigator and I also have Spyder 4.1.5. When I tried to find out which exact version of Python I have by opening python command line and entering "python --version" I get the error "name "python" is not defined". Which is odd because I obviously have Python. I also tried to install pipenv from Spyder by entering "pip install --user pipenv" which seems to work smoothly (I get something like "Requirement already satisfied: pipenv in .\site-packages (2020.11.15)").

However, when I try to start pipenv, I also get an error message "NameError: name 'pipenv' is not defined".

It looks like you try to run pipenv as python code (I guess inside pythn interactive shell, that is when you have >>>). NameError is error from inside python.
It's should be executed in the terminal/cmd.
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


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Pipenv mohammadasadi4 0 283 Jan-15-2024, 10:35 AM
Last Post: mohammadasadi4
  pipenv, is it still useful? LandonJPGinn 3 849 Jun-05-2023, 11:40 AM
Last Post: snippsat
  Libraries installed with pipenv, but ModuleNotFoundError returned jpncsu 2 2,995 Sep-06-2021, 07:24 PM
Last Post: jpncsu
  Managing dependencies with pipenv t4keheart 6 2,920 Aug-05-2020, 12:39 AM
Last Post: t4keheart
  pipenv install command getting errors on WSL/Ubuntu sheridanrea 0 3,162 Sep-14-2018, 06:40 AM
Last Post: sheridanrea

Forum Jump:

User Panel Messages

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