Issue - Install ibm_db==3.1.0 - db2

I try to install ibm_db in Jupyter notebook but with an error message. May i know how can i fix that?
!pip install --force-reinstall ibm_db==3.1.0 ibm_db_sa==0.3.3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
sqlalchemy-ibmi 0.9.2 requires sqlalchemy<1.4,>=1.3.0, but you have sqlalchemy 1.4.46 which is incompatible.
if I install pip install --force-reinstall ibm_db_sa==0.3.3
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\Users\r9you\AppData\Local\Programs\Python\Python310\Lib\site-packages\~reenlet\_greenlet.cp310-win_amd64.pyd'
Consider using the --user option or check the permissions.

Related

RASA X running issue: Make sure to start Rasa X with valid data and valid domain and config files

enter image description here I am trying to installing Rasa. I run this command rasa init. It's working fine. But when I am trying to run this command rasa x it throws an error as shown in the above image(link). One solution I have found is to remove domain_path=domain_path from the x.py file which can be found in such a path: C:\Users\Admin\anaconda3\envs\Myenv\Lib\site-packages\rasa\cli\x.py . Even though the other solution I've heard is to downgrade the version of Python and pip. Versions are (Rasa Version: 2.8.1, Python Version:3.7, pip version: 20.2) But still, I can't get rid of it. If anybody has a solution, please help.
To solve this issue, please follow the below steps:
pip install rasa==2.8.1
check rasa --version
then install
pip install rasa-sdk==2.8.1
Install this version rasa-x==0.39.3
pip install rasa-x==0.39.3 --extra-index-url https://pypi.rasa.com/simple
Some know errors:
ImportError: cannot import name ‘RowProxy’ from ‘sqlalchemy.engine’ try running pip install SQLAlchemy==1.3.22 should fix it.)
And, if you get an error not being able to import yaml then run pip install pyyaml.

Unable to install ccxt.pro via pipenv - pipenv requires an #egg fragment for version controlled dependencies

I try to install ccxt.pro via pipenv. I usually use python venv module to create virtual environment but I try to work with pipenv too.
In ccxt.pro documentation, package should be installed via pip3 over https or ssh. Via github user and password I am able to install it.
When I tried to install this library over pipenv, I receive Installation Failed error:
pipenv install git+https://github.com/kroitor/ccxt.pro.git#subdirectory=python
Installing git+https://github.com/kroitor/ccxt.pro.git#subdirectory=python…
WARNING: pipenv requires an #egg fragment for version controlled dependencies. Please
install remote dependency in the form git+https://github.com/kroitor/ccxt.pro.git#egg=<package-name>.
✘ Installation Failed
I install all dependencies from setup.py but the problem persist. Triead to apply this but it get stucked on Installing....
Questions:
How can I install ccxt.pro via pipenv?
Why am I not able to install it the same way like with pip install command?

ModuleNotFoundError: No module named 'cartopy' when import SkewT from metpy.plots under Python3

When trying to import SkewT into my python3 code on a Mac (Mojave 10.14.6):
from metpy.plots import SkewT
I get the error:
ModuleNotFoundError: No module named 'cartopy'
pip3 install cartopy gives the output
Collecting cartopy
Downloading https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz (8.9MB)
|████████████████████████████████| 8.9MB 616kB/s
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Complete output from command /usr/local/opt/python/bin/python3.7 /usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpj50b1vfe:
ERROR: setup.py:171: UserWarning: Unable to determine GEOS version. Ensure you have 3.3.3 or later installed, or installation may fail.
'.'.join(str(v) for v in GEOS_MIN_VERSION), ))
Proj 4.9.0 must be installed.
----------------------------------------
ERROR: Command "/usr/local/opt/python/bin/python3.7 /usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpj50b1vfe" failed with error code 1 in /private/tmp/pip-install-b5cu8485/cartopy
To start, I tried to install Proj and geos, but pip3 only lists version 0.1.0 for proj and 0.2.2 for geos. Before I get too far down this rabbit hole, I thought I'd see if anyone else has encountered this problem. Thanks!
So it looks like MetPy 0.10 accidentally picked up a hard dependency on CartoPy, which we did not really plan. You can track our resolution of that here.
CartoPy depends on a lot of compiled libraries that are not pip-installable unfortunately. Your best bet is to look at CartoPy's install instructions. If you're using Anaconda or Canopy, those distributions have pre-built CartoPy packages available.
One option to work around this is to install MetPy 0.9:
pip install metpy==0.9
Do you use Conda? The easiest way to remedy this problem is to install CartoPy (or MetPy for that manner) via conda, so that all of the right dependencies are also downloaded: conda install -c conda-forge cartopy or conda install -c conda-forge metpy. Pip doesn't bring all of them together, so that leads to this problem being raised.
Thanks. Without conda, I was also able to complete this (more painful) installation:
- brew install geos
- brew install proj
- pip3 install cython
- pip3 install git+https://github.com/SciTools/cartopy.git#master 
(see http://louistiao.me/posts/installing-cartopy-on-mac-osx-1011/)

python 3.6 pip install fails for distutils installed projects on ubuntu 16.04

I am running ubuntu 16.04 and have some python code that uses features from python 3.6. I have been able to install some libraries (scipy) with python3.6 and pip3.6. However there have been a few libraries (pycurl) for which using pip install is not working :
$sudo python3.6 -m pip install pycurl
Requirement already satisfied: pycurl in /usr/lib/python3/dist-packages (7.43.0)
This does not allow me to import pycurl in my python3.6 environment.
And if I instead use upgrade I get an error about pycurl being a distutils installed package.
How can I get access to pycurl for my python3.6 install?
$ sudo python3.6 -m pip install --upgrade pycurl
The directory '/home/riaps/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/riaps/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pycurl
Downloading https://files.pythonhosted.org/packages/77/d9/d272b38e6e25d2686e22f6058820298dadead69340b1c57ff84c87ef81f0/pycurl-7.43.0.1.tar.gz (195kB)
100% |████████████████████████████████| 204kB 2.8MB/s
Installing collected packages: pycurl
Found existing installation: pycurl 7.43.0
Cannot uninstall 'pycurl'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
So the problem seems to have been that it was installed in /usr/lib/python3/dist-packages. By running sudo pip3 install --upgrade pycurl It was moved to : /usr/local/lib/python3.5/dist-packages and then sudo python3.6 -m pip install pycurl could install.
I don't know why this was a problem, but it resolved the issue.

How to fix "Cannot retrieve repository metadata (repomd.xml)" error installing Ripple - yum

I installed the Ripple rpm repo following documentation
(step 1)
$ sudo rpm -Uvh
https://mirrors.ripple.com/ripple-repo-el7.rpm
Then (step2) I run command:
sudo yum install --enablerepo=ripple-stable rippled
but I get the error:
https://mirrors.ripple.com/rpm/%24releasever/stable/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: ripple-stable. Please verify its path and try again
Does anyone know how to resolve it?
That error message occurs when attempting to install the rippled package on an unsupported environment.
The rippled rpm package is currently only available for CentOS/RHEL 7 (and Ubuntu 15+ using alien)
You could try installing with:
sudo yum install --enablerepo=ripple-stable --releasever=el7 rippled
but YMMV.
\The URL is suspect - it says %24releasever which is URL-encoded $releasever which means your yum isn't filling in that blank, e.g. .../rpm/7/stable/.
Try hard-coding it in the file you can find in /etc/yum.repos.d/ that your step one installed.