PDAL issues with python3.5 - pdal

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

Related

How can I install Github project for Google Colab?

There is a project on github called Fpocket. This project is not being installed with "pip install ...", but developers share installation commands for conda.
conda config --add channels conda-forge
conda install fpocket
I could not open the project from Google colab as described here (StackOverflow)
Also solution below doesn't work (mentioned here (StackOverflow)
!pip install git+https://github.com/Discngine/fpocket
I am getting an error like
ERROR: File "setup.py" not found for legacy project
git+https://github.com/Discngine/fpocket.
Github project link is here
How can I use this project in Google Colab?
You can install fpocket with the following set of commands:
WARNING: initial run will take about 5 minutes or so to install conda and fpocket.
!pip install -q condacolab
import condacolab
condacolab.install()
!conda config --add channels conda-forge
!conda install fpocket
then try running
!fpocket | head -10
to check the installation, in my case I get
***** POCKET HUNTING BEGINS *****
! Invalid pdb name given.
:||: fpocket 4.0 :||:
Mandatory parameters :
fpocket -f --file pdb or cif file
[ fpocket -F --fileList fileList ]
which makes me believe that fpocket is installed is ready to go.

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?

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

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

Installing Network-x

How do I download and install network-x for python version 3.4.0 on mac? Can someone give me a step by step guide on installing network-x? I tried to quick 'quick install' as suggested by github.
When I try to import it on python it gives me an import error saying no modules were found.
Ok so I have figured out an easier way:
(Answering my own question)
I first download the networkx-1.10.zip (md5) zip file from https://pypi.python.org/pypi/networkx. Unzipped it. Opened the terminal and typed cd
Then, I dragged and dropped the unzipped folder (networkx-1.10) into the terminal. Hit Enter.
Then I proceeded with the following commands:
python3 --version
ls
umask
sudo python setup.py install
sudo python3 setup.py install
python3
It worked like a charm.
this has worked for me
sudo pip install networkx
This should work:
sudo pip3 install networkx
if you have annaconda, in your terminal or cmd
> % conda install -c anaconda networkx
> % conda install -c anaconda graphviz
> % conda install -c anaconda pydot
> % conda install -c pdrops pygraphviz
The other packages come in handy as well
The easiest way is using Anaconda, since networkX is installed by default. Just follow the instructions on their website (they have both a graphical and command line installer).

How can I make a list of installed packages in a certain virtualenv?

You can cd to YOUR_ENV/lib/pythonxx/site-packages/ and have a look, but is there any convenient ways?
pip freeze list all the packages installed including the system environment's.
You can list only packages in the virtualenv by
pip freeze --local
or
pip list --local.
This option works irrespective of whether you have global site packages visible in the virtualenv.
Note that restricting the virtualenv to not use global site packages isn't the answer to the problem, because the question is on how to separate the two lists, not how to constrain our workflow to fit limitations of tools.
Credits to #gvalkov's comment here. Cf. also pip issue 85.
Calling pip command inside a virtualenv should list the packages visible/available in the isolated environment. Make sure to use a recent version of virtualenv that uses option --no-site-packages by default. This way the purpose of using virtualenv is to create a python environment without access to packages installed in system python.
Next, make sure you use pip command provided inside the virtualenv (YOUR_ENV/bin/pip). Or just activate the virtualenv (source YOUR_ENV/bin/activate) as a convenient way to call the proper commands for python interpreter or pip
~/Projects$ virtualenv --version
1.9.1
~/Projects$ virtualenv -p /usr/bin/python2.7 demoenv2.7
Running virtualenv with interpreter /usr/bin/python2.7
New python executable in demoenv2.7/bin/python2.7
Also creating executable in demoenv2.7/bin/python
Installing setuptools............................done.
Installing pip...............done.
~/Projects$ cd demoenv2.7/
~/Projects/demoenv2.7$ bin/pip freeze
wsgiref==0.1.2
~/Projects/demoenv2.7$ bin/pip install commandlineapp
Downloading/unpacking commandlineapp
Downloading CommandLineApp-3.0.7.tar.gz (142kB): 142kB downloaded
Running setup.py egg_info for package commandlineapp
Installing collected packages: commandlineapp
Running setup.py install for commandlineapp
Successfully installed commandlineapp
Cleaning up...
~/Projects/demoenv2.7$ bin/pip freeze
CommandLineApp==3.0.7
wsgiref==0.1.2
What's strange in my answer is that package 'wsgiref' is visible inside the virtualenv. Its from my system python. Currently I do not know why, but maybe it is different on your system.
In Python3
pip list
Empty venv is
Package Version
---------- -------
pip 19.2.3
setuptools 41.2.0
To create a new environment
python3 -m venv your_foldername_here
Activate
cd your_foldername_here
source bin/activate
Deactivate
deactivate
You can also stand in the folder and give the virtual environment a name/folder (python3 -m venv name_of_venv).
Venv is a subset of virtualenv that is shipped with Python after 3.3.
list out the installed packages in the virtualenv
step 1:
workon envname
step 2:
pip freeze
it will display the all installed packages and installed packages and versions
If you're still a bit confused about virtualenv you might not pick up how to combine the great tips from the answers by Ioannis and Sascha. I.e. this is the basic command you need:
/YOUR_ENV/bin/pip freeze --local
That can be easily used elsewhere. E.g. here is a convenient and complete answer, suited for getting all the local packages installed in all the environments you set up via virtualenvwrapper:
cd ${WORKON_HOME:-~/.virtualenvs}
for dir in *; do [ -d $dir ] && $dir/bin/pip freeze --local > /tmp/$dir.fl; done
more /tmp/*.fl
why don't you try pip list
Remember I'm using pip version 19.1 on python version 3.7.3
If you are using pip 19.0.3 and python 3.7.4. Then go for pip list command in your virtualenv. It will show all the installed packages with respective versions.
.venv/bin/pip freeze worked for me in bash.
In my case the flask version was only visible under so I had to go to
C:\Users\\AppData\Local\flask\venv\Scripts>pip freeze --local
Using python3 executable only, from:
Gitbash:
winpty my_venv_dir/bin/python -m pip freeze
Linux:
my_venv_dir/bin/python -m pip freeze