Blog
Getting command not found error since virtualenv is not available on your linux machine
$ virtualenv .venv -bash: virtualenv: command not found
lets see how to install virtualenv on linux machine (RHEL 7),
$ pip install virtualenv -bash: pip: command not foundpip is also not installed,
$ sudo yum install python-virtualenv
Loaded plugins: search-disabled-repos Resolving Dependencies --> Running transaction check ---> Package python-virtualenv.noarch 0:15.1.0-2.el7 will be installed --> Processing Dependency: python2-devel for package: python-virtualenv-15.1.0-2.el7.noarch --> Running transaction check ---> Package python-devel.x86_64 0:2.7.5-76.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ------------------------------- ------------------------------------ Total download size: 2.1 M Installed size: 3.1 M Is this ok [y/d/N]: y Downloading packages: (1/2): python-devel-2.7.5-76.el7.x86_64.rpm | 398 kB 00:00:00 (2/2): python-virtualenv-15.1.0-2.el7.noarch.rpm | 1.7 MB 00:00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 3.8 MB/s | 2.1 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python-devel-2.7.5-76.el7.x86_64 1/2 Installing : python-virtualenv-15.1.0-2.el7.noarch 2/2 Verifying : python-virtualenv-15.1.0-2.el7.noarch 1/2 Verifying : python-devel-2.7.5-76.el7.x86_64 2/2 Installed: python-virtualenv.noarch 0:15.1.0-2.el7 Dependency Installed: python-devel.x86_64 0:2.7.5-76.el7 Complete!
Lets try virtualenv command now,
$ virtualenv venv
works as expected,
[ven]$ ..« Previous Next »
Blog
Privacy Policy | Copyright2020 - All Rights Reserved. | Contact us
| Report website issues in Github
| Facebook page
| Google+ page