Jump to content

Are we permitted to install modules in polisy?


Kajtek

Recommended Posts

Posted

I wrote some code that uses bs4 module (beautifulsoup4) and it works in Jupiter and VSCode after bs4 was installed but I get error at the
line

from bs4 import BeautifulSoup

which indicated that the module is not present

I tried to install the module using pip

pip install beautifulsoup4

but I get error. Here is the response after trial to install

[admin@polisy ~]$ pip install bs4

Collecting bs4

  Downloading https://files.pythonhosted.org/packages/10/ed/7e8b97591f6f456174139ec089c769f89a94a1a4025fe967691de971f314/bs4-0.0.1.tar.gz

Collecting beautifulsoup4 (from bs4)

  Downloading https://files.pythonhosted.org/packages/66/25/ff030e2437265616a1e9b25ccc864e0371a0bc3adb7c5a404fd661c6f4f6/beautifulsoup4-4.9.1-py3-none-any.whl (     |ââââââââââââââââââââââââââââââââ| 122kB 878kB/s

Collecting soupsieve>1.2 (from beautifulsoup4->bs4)

  Downloading https://files.pythonhosted.org/packages/6f/8f/457f4a5390eeae1cc3aeab89deb7724c965be841ffca6cfca9197482e470/soupsieve-2.0.1-py3-none-any.whl

Installing collected packages: soupsieve, beautifulsoup4, bs4

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.7/site-packages/soupsieve'

Consider using the `--user` option or check the permissions.

 

Posted

@Kajtek,

If you have signed up as a developer, please submit your code to the store so that we can vet it. Once vetted, we can include your package and its requirements in the base. In the meantime, please use:

sudo pip install xxx

With kind regards,
Michel

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...