Hi everyone,
I try to install SWAT.
I input pip install https://github.com/sassoftware/python-swat/releases/download/v1.5.0/python-swat-1.5.0-win64.tar.gz
in Anaconada Prompt.
It shows syntax error. idk how to fix this..
Thanks.
Anaconda is a virtual environment. If you install swat there it will not stay like you want. You can do it:
Run conda create -n venv_name
and source activate venv_name
, where venv_name
is the name of your virtual environment.
Run conda install pip
. This will install pip to your venv directory.
Find your anaconda directory, and find the actual venv folder. It should be somewhere like /anaconda/envs/venv_name/
.
Install new packages by doing /anaconda/envs/venv_name/bin/pip install package_name
.
This should now successfully install packages using that virtual environment's pip. But if you want this for all of python, go to the OS prompt and use pip from there.
Hi,
After several trail, I got this error like below... How can I solve this issue? Thanks!
So sorry I missed your post.
As I am sure you already know you can fix this by adding the following in your pip.ini:
trusted-host = pypi.python.org pypi.org files.pythonhosted.org
or by using
pip install --trusted-host pypi.org PyHamCrest
Andy
You can list all of your conda environments with:
conda env list
Note the * shows the current active environment.
Andy
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.