cryptocompare module in Anaconda not installed to get real time cryptocurrencies price - python

Ni Hao,
I am trying to read cryptocurrencies price in python. I tried to install cryptocompare module, but using the following codes in Anaconda prompt did not work:
conda install cryptocompare
conda install -c conda-forge cryptocompare
Also, I tried to install the downloaded file, but again did not work. Should I use another channel? If so, how can I add that channel. Also, if masters think better modules exist I appreciate to know that. Thanks

Try with pip
pip install cryptocompare

Related

python library install Questions

I use Python and pycharm as a tool.
If you use the pip statement to install the library, you will get an error.
For example, if I want to download the torch (1.6.0) version and type pip install torch==1.6.0,
It says no version.
This is not the end, but some libraries continue to cause strange conflicts and will not be installed.
For example, if you type pip install poro to install the poro library, an unknown error pops up and the installation fails.
I'm not asking for a pororo installation.
My question is, I want to know how to download the library without relying on pycharm.
I want to download it separately from a site like pypi and put the library directly into the virtual environment (conda).
What should I do?
The following worked for me:
First, install mkl using conda:
conda install -c anaconda mkl
Then run this:
conda install -c pytorch pytorch

Unable to run or reinstall or update yfinance

I have been using the package yfinance to retrieve stock prices for some time. Recently, as noted in several online posts, the package stopped working due to an update to the package. I thought that this would be a simple process to update the package and fix the problem. This has not been the case.
I am using Anaconda so I want to update using conda instead of pip using PowerShell on a PC.
What I have tried so far unsuccessfully
$ conda update --all
$ conda update conda
$ conda update-c ranaroussi yfinance
None of these worked. I tried to uninstall and then reinstall Anaconda then reinstall yfinance. Yes, I agree that this seemed like overkill for what should have been a simple issue. Unfortuntaelty, now I can't even install the package. I am using the conda command that I originally used to install the package
$ conda install -c ranaroussi yfinance
, which comes from the developer's page.
https://anaconda.org/ranaroussi/yfinance
Now, I try to run this I receive an error message that the package cannot be found in my current channels.
Screenshot of error msg.
At this point, I am just spinning my wheels and would appreciate some help. I hope that someone who might have experienced a similar issue has a suggestion for how to resolve this problem.
Thanks
Even though it's hosted on anaconda.org, this package doesn't appear to be a conda package. Its page only lists PyPI source and a one-liner to install with pip; i.e. compare it to a typical conda package. Probably best here to just pip install yfinance into a conda environment.

Trying to install new libraries on Spyder (Python 3.7)

I am new to python and I am having trouble downloading some new libraries that don't appear to be pre-installed. The names of them are rasterio and retrying. I continuously get an invalid syntax error, and I have tried using some different suggestions found online.
pip install rasterio
Above is the way I was attempting to do it, and I also tried without the pip in there, but neither option worked. I am new enough to the language that troubleshooting is very difficult. Any help is greatly appreciated!
There are several ways to install rasterio, using anaconda you have the documentation here: https://anaconda.org/conda-forge/rasterio
If you are on windows installing rasterio using pip install can be difficult since it requires binary wheels, but here is the tutorial: https://rasterio.readthedocs.io/en/latest/installation.html
I advise you to use linux since it is much easier to install packages, you can either install a dual boot or a virtual box.
I suppose you are using Spyder IDE with Anaconda. So, to install rasterio package you can open anaconda prompt and type:
conda install -c conda-forge rasterio
For further information about package installation check out this link.
Also, to install any conda packages just google it once, you will find instructions to install it mostly in anaconda's official site.
Edit:
Please remove the rasterio package once. And install it again, see if works. If it doesn't work create a new environment like: conda create --name myenv. Then install rasterio again.
If this still doesn't work, try to install rasterio from here like conda install -c ioos rasterio.

No module named 'websocket'

I'm a fairly new to Python and I am trying to enter the following code:
from websocket import create_connection as cc
import json, time
I want to look at BTC and LTC stocks in a live feed type-fashion but I keep getting this error:
ModuleNotFoundError: No module named 'websocket'
I've been looking around and it seems that a common solution is:
pip install websocket
that just didn't connect with me. Most sites say install this and just have the above code but I have no idea where to install it or what to do with it.
First, you need to install pip if you don't have it. Type pip in your terminal or cmd to see if it is installed. Or else, install it first by downloading get-pip.py and executing it.
Then you do pip install websocket, which will install the module for you.
If the websocket and websocket-client doesn't work, try:
pip install websocket_client
It works for me.
Worked on my machine using
pip install "websockets==8.1"
you can also try
pip install websocket-client
There seem to be 2 packages in python 3.7: websocket, and websockets. In my case, I tried to install the former but it had to be the latter. Wasted half an hour of my life on that. People who get here might be in the same bag.
For me, nothing worked except Pycharm editor showed a suggestion 'install websocket' which worked(in the import line).
Try with pip install websockets that's work for me!
If you are using pip, as mentioned it is pip install websockets
However, if you are using conda,
use: conda install -c conda-forge websockets

Installing gspread on OSX Anaconda for Python 3.4.3

I've tried a bunch of different variations of this out of the terminal and so far no joy. I'm trying to read Google Spreadsheets and would love to do it via Anaconda. Anaconda works great, but installing the gspread package so far is no joy. Here are some of the variations of what I've tried:
conda install gspread
This just results in Error: No packages found in current osx-64 channels matching: gspread
which makes me realize that route is probably just for stuff already available via Anaconda. So I tried downloading and unzipping gspread from here: (gspread on github)
And then navigating to the folder cd /Users/jlalonde/Downloads/gspread-master/gspread/
And trying to install, via a bunch of different variations from there. Example:
conda install setup.py
...results in same error message:
Error: No packages found in current osx-64 channels matching: setup.py
So there may be a fast-and-easy way to do it, I'm just not using the right combination of commands to get it going. Here is hoping it is possible. Any Anaconda experts out there who can help? Maybe there is something other than gspread that is comparable? That would be OK, too.
pip and conda don't play well together
If you want to load using conda, run
conda install -c conda-forge gspread
You could try it with pip:
pip install gspread

Categories

Resources