FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SeleniumBase/virtualenv_install.sh at master · seleniumbase/SeleniumBase · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
seleniumbase
/
SeleniumBase
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
1.6k
Star
13k
Code
Issues
14
Pull requests
0
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
SeleniumBase
/
virtualenv_install.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
40 lines (39 loc) · 1.47 KB
Breadcrumbs
SeleniumBase
/
virtualenv_install.sh
Copy path
File metadata and controls
executable file
·
40 lines (39 loc) · 1.47 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
Performs necessary setup steps to allow the use of
#
virtualenv commands such as "mkvirtualenv [ENV_NAME]"
#
for creating and using Python virtual environments.
#
#
Run by using the following command: "source virtualenv_install.sh"
[[
$0
!=
"
$BASH_SOURCE
"
]]
&&
sourced=1
||
sourced=0
if
[
$sourced
=
1 ]
then
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install --upgrade virtualenvwrapper --upgrade-strategy=eager
export
WORKON_HOME=
$HOME
/.virtualenvs
source
`
which virtualenvwrapper.sh
`
echo
"
"
echo
"
"
echo
"
*** You may now use virtualenv commands in your command shell. ***
"
echo
"
"
echo
"
virtualenv commands:
"
echo
'
* "mkvirtualenv [ENV_NAME]" - Create a Python virtual environment
'
echo
'
* "deactivate" - Exit the current virtual environment
'
echo
'
* "workon [ENV_NAME]" - Enter an existing virtual environment
'
echo
'
* "lsvirtualenv" OR "workon" - List all virtual environments
'
echo
'
* "rmvirtualenv [ENV_NAME]" - Delete a virtual environment
'
echo
"
"
echo
"
Example:
"
echo
"
mkvirtualenv seleniumbase
"
echo
"
mkvirtualenv seleniumbase --python=[PATH_TO_PYTHON]
"
echo
"
"
else
echo
"
"
echo
"
--------------------
"
echo
'
*** - WARNING! - ***
'
echo
"
--------------------
"
echo
"
"
echo
'
You need to "source" this file for virtualenv commands to work!
'
echo
"
"
echo
'
*** USE: source virtualenv_install.sh
'
echo
"
----------------------------
"
echo
"
"
fi
Back
|
FazBrowse Home
|
New Git URL