Answer the question
In order to leave comments, you need to log in
How to run Python under another OS?
The point is this. The other day, win10 flew, with the ends. In order not to format the disk, I connected a new one with the OS installed on it (also win10) to my computer and now I'm sitting from it.
Now I can't start python via CMD.
Will it work if I stupidly copy the "Python38-32" folder from the old system drive to the new one in the same directory? Or if I install python again on a new disk and copy only the Lib folder from the old one into it?
In general, how can I restore the ecosystem along with all the libraries and not catch a bunch of non-obvious bugs in the future?
Answer the question
In order to leave comments, you need to log in
Hagel , Well, don't want to install pip - use Anaconda. Judging by the question, everything (well, 99.99%) of what you need in the near future is there. Including pip.
No. Copying a folder is a dead end scenario.
The correct way is to reinstall Python and all necessary libs
Will it work if I stupidly copy the "Python38-32" folder from the old system drive to the new one in the same directory?
python -m pip freeze > requirements.txt
pip install -r requirements.txt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question