pip3 cannot determine archive format - atlasplots installation - python

i am trying to install Atlas Plots, but i am getting some errors. I tried to install it with the following command line:
pip3 install https://github.com/joeycarter/atlas-plots
But when i run it, terminal shows me the following error:
Cannot determine archive format of /tmp/pip-req-build-o2c8xrmg
And this command line is the only option available in the installation tutorial on the software site, which is:
https://atlas-plots.readthedocs.io/en/latest/getting_started.html#installing-atlasplots
And i need this atlasplots in my research, so i would appreciate any help.

The correct syntax to install from a Github repo are:
pip install "git+https://github.com/joeycarter/atlas-plots.git#egg=atlasplots"
or
pip install "git+ssh://git#github.com/joeycarter/atlas-plots.git#egg=atlasplots"
See the docs at https://pip.pypa.io/en/stable/cli/pip_install/#vcs-support
Report the problem at https://github.com/joeycarter/atlas-plots/issues or better send a pull request fixing https://github.com/joeycarter/atlas-plots/blob/master/docs/getting_started.rst

Related

python install speex dsp module error

I would like to ask a question about the installing speexdsp module in python installed with Anaconda3.
I downloaded the swigwin-3.0.12 from website and add it to my system variable, as well as my python35.lib and the python\include. However, I get the following message:
cl.exe' failed with exit status 2
From my research, it looks like this could be solved by adding it to system variable, but doing that didn't solve the problem for me.
If you are using ubuntu thn use this command.
sudo apt-get install build-essential libspeex-dev libspeexdsp-dev
libpulse-dev
On mac (homebrew)
brew install speex speexdsp
Speexdsp git
Speex official website
Get info from their official website.

Pip installing wrong version on win7,

I have a package that I am trying to install via pip install allen-bradley-toolkit. The package is failing with the following reason.
The problem seems to related to the fact that pip is trying to install 1.0a1.post0 instead of the latest release version 2.0.0. Does anyone have any ideas on what to do about this. Perhaps there is something wrong in my deployment script. You can view the Github Library here to see how I am deploying to PyPi.
There is an issue opened on the GitHub Tracker #2 that you can also reference for more info.
NOTE: The package seems to install fine on my win10 machine. But I am unable to get it to install on a win7 VM.
Ive also tried installing with the following commands:
pip install --no-cache-dir allen-bradley-toolkit
pip install allen-bradley-toolkit==2.0.0 -> this ones throws a 'doesnt exist error`
At https://pypi.python.org/pypi/allen-bradley-toolkit/2.0.0 I see that the wheel is only available for Python 3. You're trying to install it with Python 2.7.
To publish a universal wheel (suitable for both Py2 and Py3) you need to set
[bdist_wheel]
universal = 1
in setup.cfg or run
python setup.py bdist_wheel --universal
The 2nd line of the output has a clue to the problem - "Using cached ..."
You can skip the cache using the --skip-cache --no-cache-dir option to pip install or request an upgrade using the -U option
edit: updated comment with the correct option (although, seems like that wasn't the problem in this specific case).

Issues with installing tweepy with Anaconda

I'm getting this error while trying to install Tweepy Package for python (i'm working with anconda prompt):
ERROR conda.core.link:_execute_actions(337): An error occurred while installing package 'conda-forge::pyjwt-1.5.3-py_0'.
CondaError: Cannot link a source that does not exist. C:\ProgramData\Anaconda2\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.
Attempting to roll back.
CondaError: Cannot link a source that does not exist. C:\ProgramData\Anaconda2\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.
I followed the suggestion and ran 'conda clean --packages' and then tried to install it again, using conda install -c conda-forge tweepy, suffice to say it didn't work and I'm getting the following error :
ERROR conda.core.link:_execute_actions(337): An error occurred while installing package 'conda-forge::pyjwt-1.5.3-py_0'.
CondaError: Cannot link a source that does not exist. C:\ProgramData\Anaconda2\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.
Attempting to roll back.
CondaError: Cannot link a source that does not exist. C:\ProgramData\Anaconda2\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.
Any help here? I'm using python 2.7, Anconda2-5.0.1 and Windows 10
I got the same exact error as yours. If you check tweepy's Github https://github.com/tweepy/tweepyyou you will read that the easiest way to install tweepy is by using pip, so you should follow that way instead.
So in case you haven't installed pip using conda, then type at the conda command prompt
conda install pip
Then again on the command prompt
pip install tweepy
It should work now

Syntax Error from 'pip install' in python + command line

Okay, so, I'm running Python 3.4.3 with pip 9.0.1, with the setuptools and wheel.
I'm running this inside JetBrains PyCharm Professional 2017.2.3.
The issue I'm having is trying to install the twitter api packages from this tutorial (ya I'm a n00b) http://wiki.openhatch.org/Twitter
I'm struggling with installing the 4 dependencies mentioned in the first part of the tutorial (httplib2, simplejson, oauth2 and python-twitter)
Honestly, I'm just getting back into programming and this is a project I'd like to complete.
So, I need help with:
Installing pip, and how to use it, and where (python shell or command line or)
the dev.twitter.com website (and where to find what I need from there)
Any help is massively appreciated and sorry if I sound really n00by, but do correct me where I'm using incorrect terms etc because that's how I learn I guess :)
If you haven't got pip installed, find your python installation file.Execute it and choose 'Change Python Installation'. Now choose 'pip' to install and 'add python.exe to path'. Wait for it to finish. Now run windows command line and type:
pip install package_name
Sometimes you may experience that a package isn't available on pip or doesn't work.There are 2 common (not always working) ways to install a package without making pip download the file:
1) A package may be available as a .whl file for download.Download it.Now find it and copy its name .Open a command line in dictionary where it is located and type
pip install **now paste the filename and add .whl**'
2)A package is available as a zip file.Packages are often packed into a zip file.Download the file and extract it.Open a command line in it's directory.You may see setup.py file.Run
python setup.py install
When finished installing pip and adding python to path,you can run:
pip install httplib2 simplejson oauth2 python-twitter
Done.
Once you have pip installed, open the command prompt and just type pip install name_of_the_extension.
In this case, pip install httplib2 will install this package.
I believe you have pip installed on your computer, so it shouldn't be a problem to install the 4 packages you need.

Python (anaconda) add packages with pip behind proxy

sorry for asking a probalby stupid question, however, I am completely new to setting up/installing python packages, i.e. I have never done it.
So far I installed anaconda3 and worked with the pre installed packages. Now I need the google api pyhon client.
I do not even know whether pip is installed in the anaconda package but I assume it.
What have I tried so far:
In Windows cmd:
1. pip install --upgrade google-api-python-client
2. pip install -- proxy="XXX.XXX.XX.X:XX" -- upgrade google-api-python-client
3. export https_proxy="...."
pip install --upgrade google-api-python-client
I get the following errors:
cannot fetch index base url https://pypi.python.org/simple
unknown command
unknown command
In addition I tried to download the google_api_python_client and unzipped it.
However, I do not know how to proceed here.
BTW: Here in my company we are still on XP
Any help would be highly appreciated!
THANK YOU
Would like to add to the answer by #alok-nayak that you should use the following:
python setup.py install
Leads to:
Installed ~/anaconda/lib/python2.7/site-packages/google_api_python_client-1.4.2-py2.7.egg
After unzipping google_api_python_client. You should run the setup.py file
python setup.py
Also you can edit ".condarc" file in your home folder, as explained here http://conda.pydata.org/docs/config.html . enter your proxy details there

Categories

Resources