Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyvenv depricated in 3.8+, updated to python3 -m venv #117

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions basic_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@ echo "[+] Completed extracted RTM bot"
# Create the virtualenvs:
echo "[-->] Creating venv in ${RTM_PATH}..."

if command -v pyvenv >/dev/null 2>&1 ; then
if command -v python3 >/dev/null 2>&1 ; then

PYTHON_VERSION=`python --version 2>&1 | grep -i continuum`
PYTHON_VERSION=`python3 --version 2>&1 | grep -i continuum`
if [[ $PYTHON_VERSION != "" ]]; then
echo "[+] Conda installation detected ..."
pyvenv venv --without-pip
python3 -m venv venv --without-pip
source venv/bin/activate

echo "[-->] Installing PIP in venv..."
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
python3 get-pip.py
echo "[+] PIP Installed"
else
pyvenv venv
python3 -m venv venv
source venv/bin/activate
fi

Expand Down Expand Up @@ -112,6 +112,6 @@ if command -v pyvenv >/dev/null 2>&1 ; then
echo
echo "DONE!"
else
echo "pyvenv is not installed. Install pyvenv to continue. Aborting."
echo "python3 is not installed. Install python3 to continue. Aborting."
exit 1;
fi