Bring pycharm python project to a windows server

已回答

Dear forum,
I’m a beginner in python so apologize in advance for a maybe stupid question :-).

I have developed a small python tool in pycharm community version. My question is how is the best way to bring this project to a windows server. On the windows server python is not installed so far.
Can I just copy the venv directory to the windows server ? If yes how can I start the tool? 
Thx in advance for your help !

1

Hi, virtual environments are not portable by default, so moving it to Windows Server will break things for sure. You should probably install an interpreter on the server to run your script or use something like py2exe to create a self-contained executable, see the relevant question on StackOverflow https://stackoverflow.com/questions/5458048/how-to-make-a-python-script-standalone-executable-to-run-without-any-dependency

0

请先登录再写评论。