When I create the virtualenv, if I do not add the --no-site-packages
as param:
virtualenv venv
I can get the packages, in the
venv/lib/
there are a python2.7
package:
python2.7
under the python2.7
there are site-packages.
But, I have a requirement, I want copy the python3.5
to the venv/lib/
how can I do this?
EDIT-1
I use the post method create the venv
, in the venv/lib/
:
there is the python3.5
directory, but in the venv/lib/python3.5/site-packages
there are few packages:
But in my Mac's sitepages:
there are so many packages, my requirement is add those packages in the venv
when create the venv
:
my origin site-packages path is:/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages
EIDT-2
Before, I do not use virtualenv, I have installed many site-packages in my Mac, (/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages
), and I want to use venv
now, so I am looking for a method to create the venv
and the site-packages I have installed should include in it.