Do the following steps on the source machine:
- workon [environment_name]
- pip freeze > requirements.txt
- copy requirements.txt to other PC
On the other PC:
- create a virtual environment using mkvirtualenv [environment_name]
- workon [environment_name]
- pip install -r requirements.txt
You should be done.
Other Resources:
- How to Copy/Clone a Virtual Environment from Server to Local Machine
Related Contents:
- What is a virtualenv, and why should I use one?
- How can I install packages using pip according to the requirements.txt file from a local directory?
- What is the purpose of “pip install –user …”?
- No module named pkg_resources
- How do I update/upgrade pip itself from inside my virtual environment?
- What is the easiest way to remove all packages installed by pip?
- How to install psycopg2 with “pip” on Python?
- “Cannot open include file: ‘config-win.h’: No such file or directory” while installing mysql-python
- Renaming a virtualenv folder without breaking it
- pip installing in global site-packages instead of virtualenv
- PyCharm doesn’t recognise installed module
- virtualenv –no-site-packages and pip still finding global packages?
- Problems with pip install numpy – RuntimeError: Broken toolchain: cannot link a simple C program
- How to get “python -m venv” to directly install latest pip version
- ImportError: No module named Crypto.Cipher
- How to uninstall a package installed with pip install –user
- Upgrade python in a virtualenv
- How to install a package inside virtualenv?
- How to avoid “Permission denied” when using pip with virtualenv
- What is the official “preferred” way to install pip and virtualenv systemwide?
- PyCharm doesn’t recognize installed module
- Difference between ‘python setup.py install’ and ‘pip install’
- Where does pip install its packages?
- How do I remove all packages installed by pip?
- Upgrade Python in a virtual environment
- How to specify install order for python pip?
- Illegal instruction (core dumped) after running import tensorflow
- how to pip uninstall with virtualenv on heroku cedar stack?
- virtualenv: Specifing which packages to use system-wide vs local [duplicate]
- Could not find a version that satisfies the requirement pytz
- pip: Could not find an activated virtualenv (required)
- Could not build wheels for _ which use PEP 517 and cannot be installed directly – Easy Solution
- Installing python module within code
- pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- pg_config executable not found
- Copying nested lists in Python
- pip how to remove incorrectly installed package with a leading dash: “-pkgname”
- Using Pip to install packages to Anaconda Environment
- using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”
- How to run Spyder in virtual environment?
- libxml install error using pip
- pip freeze creates some weird path instead of the package version
- How do I manage third-party Python libraries with Google App Engine? (virtualenv? pip?)
- pip or pip3 to install packages for Python 3?
- Combining conda environment.yml with pip requirements.txt
- How to install pip for Python 3 on Mac OS X?
- Unable to install Pygame using pip
- How to duplicate virtualenv
- How can I activate a virtualenv in Linux?
- Is there a way to have a conditional requirements.txt file for my Python application based on platform?