H
H
Hagel2021-07-07 21:11:03
Python
Hagel, 2021-07-07 21:11:03

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

3 answer(s)
D
dmshar, 2021-07-07
@dmshar

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.

D
Developer, 2021-07-07
@samodum

No. Copying a folder is a dead end scenario.
The correct way is to reinstall Python and all necessary libs

S
soremix, 2021-07-07
@SoreMix

Will it work if I stupidly copy the "Python38-32" folder from the old system drive to the new one in the same directory?

So did the python stay on the disk? Just run it, do it python -m pip freeze > requirements.txt
Then install the same version, well, with a new installation dopip install -r requirements.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question