r/PinoyProgrammer • u/Old_Isopod_5619 • 22h ago
advice Constant problems with Python virtual environments, PyTorch, and VS Code Jupyter kernels. Should I just start over?
I'm honestly getting frustrated with setting up Python environments. It seems like every time I start a new project, I encounter another problem with my virtual environment.
Recently, I installed PyTorch, but whenever I try to import it, Windows Security blocks one of its DLL files (torch_python.dll), giving me a WinError 4551. I found out that Smart App Control is enabled on my Windows 11 machine.
On top of that, whenever I try to run a Jupyter Notebook kernel in VS Code, it keeps prompting me to install Python, even though I already have Python installed along with the necessary packages.
At this point, I'm wondering if I should just start from scratch by reinstalling Python, properly configuring its PATH, and rebuilding all my virtual environments. I've already downloaded and installed so many packages that I honestly don't know where things went wrong.
I have a few questions:
- Is it better to completely reinstall Python and start fresh?
- How do you properly manage virtual environments when working on multiple projects?
- Should I create a separate virtual environment for every project?
- Why does VS Code keep asking me to install Python whenever I run a Jupyter kernel, even though Python is already installed?
- Is there a recommended workflow for managing Python, pip, virtual environments, and Jupyter Notebook?
I'm still learning Python for machine learning and deep learning, so I'd really appreciate any advice, recommended practices, or tutorials.
I don't mind starting over if that's what it takes. I just want to establish a clean and reliable setup so I don't have to deal with these problems every time I start a new project.
Thanks in advance!
View all comments
Show parent comment
1
u/Mountain_Egg_2106 19h ago
it's like a lightweight vm running linux inside windows (terminal). basically, magagamit mo mga linux commands and tools nang hindi naalis sa windows. imo less hassle mag setup ng dev env on linux compared sa windows, especially since most dev tools are designed for it