Tag Archives: Python library installation

[Solved] hydra Install Error: AttributeError: module ‘hydra‘ has no attribute ‘main‘

AttributeError: module ‘hydra’ has no attribute ‘main’

Error:

1. use the following command to install hydra:pip install hydra,an error is reported:AttributeError: module 'hydra' has no attribute 'main'


Solution:

2. Uninstall the installed hydra: pip uninstall hydra
3. Instead of using the following command: pip install hydra-core --upgrade, It will be install fine!

[Solved] RuntimeError : PyTorch was compiled without NumPy support

I used to use torch 0.4.1, numpy 1.20.1, running error pytorch was compiled without numpy support

later found the following solution
1

pip install numpy==1.15.0

2.upgrade torch-0.4.1to torch-0.4.1.post2

pip install torch==0.4.1.post2

Another error will be reported after using 1 (I forgot the screenshot), which is like this: valueerror: numpy.ufunc size changed, may indicate binary instability. Expected 216 from C header, got 192 from pyobject
after that, I changed the version of numpy to 1.20.1 , Then update torch from torch-0.4.1 to torch-0.4.1. Post2 , so the first step is unnecessary