After Pycharm installs Unrar, also installs the RAR official library
Otherwise it will throw couldn ' t find path to Unrar library error when running
Windows:
Download Rarlib library file, address: Http://www.rarlab.com/rar/UnRARDLL.exe
Download the installation, the default setting is OK
To set environment variables after installation is complete
If it is a 64-bit operating system
Restart Pycharm after setting environment variables
Linux:
: http://www.rarlab.com/rar/unrarsrc-5.4.5.tar.gz
Unzip after download
[Email protected]:~$ tar zxvf unrarsrc-5.4.5.tar.gz[email protected]:~$ cd unrar/[email protected]:~/unrar$ ls
Then execute the command.
[Email protected]:~/unrar$ make Lib //compile library file [email protected]:~/unrar$ sudo make install-lib //Generate Libunrar.so file
Configuring Environment variables
[Email protected]:~$ sudo vim/etc/profile
At the end add
Export unrar_lib_path=/usr/lib/libunrar.so
Make variables effective
[Email protected]:~$ source/etc/profile
python-solution for couldn ' t find path to Unrar library when using Unrar libraries