简体   繁体   English

如何在 python 上的任何地方为 pyenchant 安装附魔 C 库

[英]How to install enchant C library for pyenchant on python anywhere

On python anywhere, you aren't allowed to use sudo.在 python 任何地方,都不允许使用 sudo。 So I can't run sudo apt-get install python-enchant所以我不能运行 sudo apt-get install python-enchant

I tried to use linuxbrew to install enchant however, I can't install linuxbrew because the script requires sudo.我尝试使用 linuxbrew 来安装附魔,但是我无法安装 linuxbrew,因为脚本需要 sudo。

This script gives me an error saying that I need to be sudo:这个脚本给了我一个错误,说我需要 sudo:

apt-get install python-enchant 

What kind of works: I was able to use什么样的作品:我能用

apt-get download python-enchant
dpkg -x python-enchant ./

This also works:这也有效:

apt-get source python-enchant

These are steps I found from other tutorials for installing things without sudo.这些是我从其他教程中找到的不使用 sudo 安装东西的步骤。 However, when I import enchant, the library still can't be found.但是,当我导入附魔时,仍然找不到该库。 Do I need to move the extracted file somewhere?我需要将提取的文件移动到某处吗?

Thank you in advance.先感谢您。

Users are not able to install system packages on PythonAnywhere.用户无法在 PythonAnywhere 上安装系统包。 You may install pypi package but the libenchant has to be pre-installed by admins.您可以安装 pypi package 但libenchant必须由管理员预先安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM