python-solution for couldn ' t find path to Unrar library when using Unrar libraries

Source: Internet
Author: User
Tags rar

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.