-
Notifications
You must be signed in to change notification settings - Fork 1
/
qiskit-cha.sh
34 lines (22 loc) · 922 Bytes
/
qiskit-cha.sh
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
# setting python3 as your main python
cd
echo "alias python=python3" >> ~/.bashrc
source ~/.bashrc
# install python 3.7 on your system
sudo apt-get install python3.7-dev python3.7-venv python3-all-dev python3-pip
# setting pip to be point at python 3
sudo -H pip3 install pip
sudo -H pip install virtualenv virtualenvwrapper
# setup bashrc file for virtual environments
echo -e "\n# virtualenv and virtualenvwrapper" >> ~/.bashrc
echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.bashrc
echo "export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3" >> ~/.bashrc
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
source ~/.bashrc
# creating virtual environment for qiskit challenge
mkvirtualenv -p37 qis-ch
# install python packages
pip install numpy cython
pip install seaborn pillow jupyter notebook
pip install -I git+https://github.com/qiskit-community/may4_challenge.git@0.4.30
pip install qiskit