This repository is an official PyTorch implementation of the paper "Learnable Triangulation of Human Pose" (ICCV 2019, oral). Proposed method archives state-of-the-art results in multi-view 3D human pose estimation!
MIT License
1.09k
stars
181
forks
source link
Importing pycdf from spacepy correctly using Google Colab #155
I am currently working on google colab and I would like to import pycdf from spacepy.
I have installed pycdf using pip install spacepy, following that I have set the CDF_LIB environmental variable to /usr/local/lib using the following.
os.environ["CDF_LIB"] = '/usr/local/lib'
However when using from spacepy import pycdf I get the following
Exception Traceback (most recent call last)
[<ipython-input-95-81b0252608c2>](https://localhost:8080/#) in <module>
2 import numpy as np
3 import matplotlib.pyplot as plt
----> 4 from spacepy import pycdf
[/usr/local/lib/python3.7/dist-packages/spacepy/pycdf/__init__.py](https://localhost:8080/#) in <module>
1301 raise Exception(('Cannot load CDF C library; checked {0}. '
1302 'Try \'os.environ["CDF_LIB"] = library_directory\' '
-> 1303 'before import.').format(', '.join(_libpath)))
1304 from . import const
1305 lib = Library(_libpath, _library)
Exception: Cannot load CDF C library; checked . Try 'os.environ["CDF_LIB"] = library_directory' before import.
Am I doing something wrong? Thank you
OS, Python version, and dependency version information:
I am currently working on google colab and I would like to import pycdf from spacepy. I have installed pycdf using
pip install spacepy
, following that I have set theCDF_LIB
environmental variable to/usr/local/lib
using the following.However when using
from spacepy import pycdf
I get the followingAm I doing something wrong? Thank you
OS, Python version, and dependency version information:
Version of SpacePy