-1

I have created a virtual environment in pycharm on windows.

I've cloned the project to a linux machine running Ubuntu 18.04 and tried creating a venv with same name at linux (I overwrote it with virtualenv venv) but I had to install requirements again.

Is there an any way run this existing venv to linux?

krrrr0
  • 29
  • 2
  • 5
  • 1
    Virtual environments should be used on the system they have been created on. They are unique to the environment (OS, libraries, architecture, Python version, ...) especially if C code is involved. – Klaus D. Dec 22 '18 at 04:32

1 Answers1

1

There is no way to do this simply because windows executables will not run on linux, just make sure you have a requirements.txt file. Additionally, you'll run into other problems where venv bin scripts have improper #! lines if copy the venv.

Jonno_FTW
  • 8,601
  • 7
  • 58
  • 90