Unable to install xgboost in python-3.7.0 version in anaconda propmt windows 10 - python-3.7

Image of python versionI have installed anaconda and installed python 3.7.0 version in that and trying to install xgboost for python, it is showing "Solving environment" for a long time nothing is done yet. Can anyone tell me what can be done for this, please?

Can you try installing with the following:
conda install -c conda-forge xgboost
Looks like there is a similar question here:
conda install -c conda-forge python-pdal Solving environment: | hangs when running windows 10

Related

python2.7 in Raspbian Lite

I have installed Raspbian Lite OS in Raspberry Pi zero.
I found that Raspbian Lite comes with Python3 as default.
But I am gonna run some scripts that uses libraries that are Python2 Compatible.
So I tried to change the default Python version from Python3 to Python2 (Specifically Python2.7.18)
After so much searching and trying, instructions from [this page][1] made my job
Now if I try to check in command writing
python --version
It shows me that it is Python2.7.18
But the problem is I am not being able to install any packages using
sudo apt-get install <python-packagename>
It shows me Errors like
1.Package "python-pip" has no installation candidate (When I tried to install pip)
2. Package python-numpy has no installation candidate (when I tried to install numpy)
3. unable to locate package python-pyaudio (when I tried to install pyaudio)
I am searching but no solution.
Can anyone please help? I am frozen in a critical stage of my project .
Generally, for new raspbian/raspios os with python 3 by default, it is not suggested to replace the system python interpreter to python 2, it may break some system component's dependency.
Instead, you can create a python 2 virtual env, if you need to run python2 scripts.
sudo apt-get install python3-pip
pip install virtualenv
virtualenv -p /usr/bin/python2.7 venv
source venv/bin/activate
You can test the python version as following,
(venv) $ python --version

Raspbian: Can't able to install python 3.6 using miniconda

Installed miniconda on raspbian OS following link
but ended up with error while installing python 3.6 as specified in the answer.
Error: No packages found in current linux-armv7l channels matching: python 3.6*
Did you mean one of these?
python
You can search for this package on anaconda.org with
anaconda search -t conda python 3.6*
This command returns No packages found
anaconda search -t conda python3.6
How to solve this issue?

Is there a way to install pykml with conda and python 3.7?

If I try to install pykml with conda I got the following conflict:
Specifications:
pykml -> python[version='2.7.|3.4.|3.5.|3.6.|<3']
Your python: python=3.7
My question is now if there exist a way to install pykml in python3.7 and to avoid downgrading my version of python?
regards

PDAL issues with python3.5

I installed PDAL in Conda Python3.5.6. After manually linked many ".so" files I still got err when I wanted to convert LAS to LAZ file.
Unable to open "libpdalpython.pyx": File not found
Can someone tell me how to fix it??
I have the same problem before, it looks like PDAL and python 3.5 have some conflicts. I solved it by:
conda create -n py36 python = 3.6
conda install -c conda-forge pdal==1.9.0
conda install -c conda-forge python-pdal

Pip installing packages but module not found after install

Hi I am running Ubuntu 16.04.
I have had problems with my pip, it seems like it is installing correctly but when I open python and go to import, it gives me an error saying it cannot be found.
I read other posts and it seems like pip is talking to the wrong version of python.
When I run:
>> which pip
/home/Username/.local/bin/pip
>> which python
/usr/bin/python
I tried uninstalling pip and then reinstalling it but when I run "which pip" it comes up the same location. I can't use this pip to download any python packages. Does anyone have any idea how to fix this?
Edit:
When i put in the terminal the following commands the output is:
>> python -V
Python 2.7.12
>> pip -V
pip 9.0.1 from /home/heatdeath/.local/lib/python2.7/site-packages (python 2.7)