python – Conda install module shows done, but the module is not installed
I am trying to install pyarrow using conda. The install appears to succeed but the files are not placed in the relevant directory.
My Python install is on a corporate Linux server with no internet access, that I SSH in to. Python on this machine is tolerated but not supported by my organisation’s IT. There are restrictions on what can be transferred onto the server which is why I’m not using the online latest versions.
I’m new to Python and Anaconda so rookie mistakes are likely, but googling has not helped me with this one.
- Initialise anaconda-2020.07-py38. This is the latest version available on my machine.
> /applications/python2020/Anaconda3/bin/conda init zsh
- Create and activate a new environment named
personal.
> conda create --name personal --clone base
...
> conda activate personal
- Manually download latest python3.8 compatible release of pyarrow from conda-forge and install it.
> conda install -n personal '/home/imacthere4iam/Downloads/pyarrow-17.0.0-py38hb563948_1.conda'
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
- Check that
conda listshows the module is installed (other packages snipped).
> conda list
# packages in environment at /home/ed01559/.conda/envs/personal:
#
# Name Version Build Channel
pyarrow 17.0.0 py38hb563948_1
Module pyarrow to be installed in /home/imacthere4iam/.conda/envs/personal/lib/python3.8/site-packages.
If I had messed something up (like missing dependencies, or an incompatible version, then I would expect some error message from conda.
import pyarrow results in ModuleNotFoundError: No module named 'pyarrow'
I checked that I’m in the correct environment; sys.path is correct; the problem seems to be that the module isn’t actually getting installed to the target environment site-packages.
Read more here: Source link
