Home > Software engineering >  How can I solve this path error in project 'not a valid python path'
How can I solve this path error in project 'not a valid python path'

Time:07-20

Hi guys I tried recently to create a new django project. So I run 'pipenv install django'. And this was the error I had.

  File "C:\Users\KONLAN\AppData\Local\Programs\Python\Python310\Lib\site-packages\pipenv\vendor\pythonfinder\models\python.py", line 379, in __getattribute__
    instance_dict = self.parse_executable(executable)
  File "C:\Users\KONLAN\AppData\Local\Programs\Python\Python310\Lib\site-packages\pipenv\vendor\pythonfinder\models\python.py", line 624, in parse_executable
    raise ValueError("Not a valid python path: %r" % path)
ValueError: Not a valid python path: 'C:/Users/KONLAN/Downloads/Anaconda/python.exe'

HOW CAN I SOLVE THIS?

CodePudding user response:

you can use package manager pip:

pip install django

or

pip3 install django

CodePudding user response:

Similar problems have been solved in GitHub, and solutions have also been given:

Search for Python351 in regedit (win r , regedit) and delete the entries.

  • Related