question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invoke Python in a inexistence path when I init a project

See original GitHub issue
  • I have searched the issue tracker and believe that this is not a duplicate.

Make sure you run commands with -v flag before pasting the output.

Steps to reproduce

When i run pdm init, it returns [ValueError]: Not a valid python path: 'C:/Tool/Scoop/apps/Python/3.9.1/python.exe'. But my Python is installed in C:/Tool/Scoop/apps/Python/3.9.4/python.exe now.

Actual behavior

Expected behavior

Environment Information

# Paste the output of `pdm info && pdm info --env` below:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
frostmingcommented, Apr 29, 2021

You should remove the broken Python records in regedit, you can find all versions under HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore

Note: Always use a uninstall program to remove installations, never delete by hand!

0reactions
karolzlotcommented, Aug 2, 2021

@frostming 1.2.8

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run python script from within the python project, which is a ...
Usually your current working directory is the first element in sys.path. Thus you need to cd to main/python and then run .
Read more >
__main__ — Top-level code environment — Python 3.11 ...
“Top-level code” is the first user-specified Python module that starts running. It's “top-level” because it imports all other modules that the program needs....
Read more >
inlife/nexrender: Data-driven render automation for After Effects
We've successfully rendered a static project file using nexrender, however, there is not much point doing that unless we are going to add...
Read more >
How To Add A Python Path | Edureka
This article will put forth a very simple ye and important concept that is how to add Python to path with a practical...
Read more >
TypeORM - Amazing ORM for TypeScript and JavaScript (ES7 ...
The quickest way to get started with TypeORM is to use its CLI commands to ... You can also run typeorm init on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found