I have followed, but error in step 8 :
source CyberCP/bin/activate
-bash: CyberCP/bin/activate: No such file or directory
[root@erp local]# virtualenv –system-site-packages /usr/local/CyberCP
There must be only one argument: DEST_DIR (you gave –system-site-packages /usr/local/CyberCP)
Usage: virtualenv [OPTIONS] DEST_DIR
I have followed, but error in step 8 :
source CyberCP/bin/activate
-bash: CyberCP/bin/activate: No such file or directory
[root@erp local]# virtualenv –system-site-packages /usr/local/CyberCP
There must be only one argument: DEST_DIR (you gave –system-site-packages /usr/local/CyberCP)
Usage: virtualenv [OPTIONS] DEST_DIR
I have followed, but error in step 8 :
source CyberCP/bin/activate
-bash: CyberCP/bin/activate: No such file or directory
[root@erp local]# virtualenv –system-site-packages /usr/local/CyberCP
There must be only one argument: DEST_DIR (you gave –system-site-packages /usr/local/CyberCP)
Usage: virtualenv [OPTIONS] DEST_DIR
virtualenv --system-site-packages /usr/local/CyberCP
New python executable in /usr/local/CyberCP/bin/python2
Traceback (most recent call last):
File “/usr/bin/virtualenv”, line 11, in
sys.exit(main())
File “/usr/lib/python2.7/site-packages/virtualenv.py”, line 712, in main
symlink=options.symlink)
File “/usr/lib/python2.7/site-packages/virtualenv.py”, line 927, in create_environment
site_packages=site_packages, clear=clear, symlink=symlink))
File “/usr/lib/python2.7/site-packages/virtualenv.py”, line 1233, in install_python
shutil.copyfile(executable, py_executable)
File “/usr/lib64/python2.7/shutil.py”, line 83, in copyfile
with open(dst, ‘wb’) as fdst:
IOError: [Errno 26] Text file busy: ‘/usr/local/CyberCP/bin/python2’
(CyberCP) [root@erp local]# deactivate
[root@erp local]# systemctl restart gunicorn.socket
[root@erp local]# deactivate
-bash: deactivate: command not found
[root@erp local]# virtualenv --system-site-packages /usr/local/CyberCP
New python executable in /usr/local/CyberCP/bin/python2
Traceback (most recent call last):
File “/usr/bin/virtualenv”, line 11, in
sys.exit(main())
File “/usr/lib/python2.7/site-packages/virtualenv.py”, line 712, in main
symlink=options.symlink)
File “/usr/lib/python2.7/site-packages/virtualenv.py”, line 927, in create_environment
site_packages=site_packages, clear=clear, symlink=symlink))
File “/usr/lib/python2.7/site-packages/virtualenv.py”, line 1233, in install_python
shutil.copyfile(executable, py_executable)
File “/usr/lib64/python2.7/shutil.py”, line 83, in copyfile
with open(dst, ‘wb’) as fdst:
IOError: [Errno 26] Text file busy: ‘/usr/local/CyberCP/bin/python2’
[root@erp local]#