- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You might need to check the pip documentation for how to install it on your operating system if it not installed yet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
andsource activate venv_name
, wherevenv_name
is the name of your virtual environment. -
Run
conda install pip
. This will install pip to your venv directory. - At this point you have two versions of pip installed; a global version and a version specific to your virtual environment. If you try to run pip install 'package_name' you’ll use the global version, which will install the package outside your virtual environment.
-
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
. - so:
- conda create -n my_swat
- source activate my_swat
- conda install pip
- /anaconda/envs/my_swat/bin/pip install https://github.com/sassoftware/python-swat/releases/download/v1.5.0/python-swat-1.5.0-win64.tar.gz
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
After several trail, I got this error like below... How can I solve this issue? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You can list all of your conda environments with:
conda env list
Note the * shows the current active environment.
Andy