Replies: 1 comment 2 replies
-
Thanks for this information @itgav Finally windows has poor library and dependency management, consider use WSL2 and manage your developer tools there. At the end, did you find a solution which fulfill your needs? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
OS: Windows 11
After installing Nodejs on my system, I was having issues calling Python commands, running deploy.py, some Python libraries weren't showing up as installed. The issue was due to two separate instances of Python on my machine after the Nodejs install. I already had Python installed on my machine and when installing Nodejs another instance of Python was installed with a new directory.
The normal Python installer installs Python to the following directory: "C:\Users\Username\AppData\Local\Programs\Python"
However, Nodejs installs Python to a different directory: "C:\Python"
So, with the new Python path and the installation setting environment variables, when I would call Python in the terminal it was looking at the directory associated with Nodejs Python download. The Nodejs Python folder didn't migrate any of the Python libraries or anything, just installed plain Python.
Ideally, I would've liked to merge my old Python directory into the one created by Nodejs but I couldn't figure out a seamless way to do so in a small amount of time. So, there are two easy solutions with different steps for each. 1) use the original directory of Python; or, 2) use the Nodejs directory. I chose to use the original directory because Nodejs installed Python 3.11 and there were some libraries that weren't updated for 3.11 yet. You can change which version Nodejs installs, but again I was looking for a quick fix.
Using original Python directory/files
Using Python downloaded by Nodejs
Beta Was this translation helpful? Give feedback.
All reactions