Я хотел программировать в блокноте Jupyter на вкладке Samsung. Поэтому я установил pydroid3 и попытался установить jupyter с помощью: pip install jupyter
Но это не сработало из-за ошибки, в которой говорилось, что ржавчина не найдена (1). Затем я попытался установить Rust с помощью https://rustup.rs/, но возникла ошибка: выравнивание TLS было 16, а должно быть 64 (2).
1: код ошибки после попытки установить jupyter
2: код ошибки после попытки установить Rust по ссылке.
Сначала я попытался обновить pip до новейшей версии, которая сработала, а затем снова попытался установить jupyter, но это не удалось.
Затем я попытался установить Rust, но это не удалось из-за проблемы с выравниванием TLS.
Спасибо за ваши ответы!
Вот код после попытки установить Rust с помощью pip:
sh: pkg: not found
/storage/emulated/0/Android/data/ru.iiec.pydroid3/files $ pip install rust
Requirement already satisfied: rust in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (1.3.1)
Requirement already satisfied: pysam in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from rust) (0.22.0)
Requirement already satisfied: matplotlib in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from rust) (3.4.3)
Requirement already satisfied: numpy in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from rust) (1.21.2)
Requirement already satisfied: cycler>=0.10 in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from matplotlib->rust) (0.12.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from matplotlib->rust) (1.3.2)
Requirement already satisfied: pillow>=6.2.0 in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from matplotlib->rust) (8.4.0)
Requirement already satisfied: pyparsing>=2.2.1 in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from matplotlib->rust) (2.4.7)
Requirement already satisfied: python-dateutil>=2.7 in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from matplotlib->rust) (2.8.2)
Requirement already satisfied: six>=1.5 in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from python-dateutil>=2.7->matplotlib->rust) (1.16.0)
/storage/emulated/0/Android/data/ru.iiec.pydroid3/files $```
And here is the error code after i tried pip install jupyter:
``` /storage/emulated/0/Android/data/ru.iiec.pydroid3/files $ pip install jupyter
writing manifest file 'maturin.egg-info/SOURCES.txt'
running build_ext
running build_rust
error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for maturin
Failed to build maturin
ERROR: Could not build wheels for maturin, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
/storage/emulated/0/Android/data/ru.iiec.pydroid3/files $```
Then I tried to use the link to install rust, but an alignement error occured:
```/ $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
info: downloading installer
Warning: Not enforcing strong cipher suites for TLS, this is potentially less secure
error: "/data/user/0/ru.iiec.pydroid3/cache/tmp.35PK8APSgy/rustup-init": executable's TLS segment is underaligned: alignment is 16, needs to be at least 64 for ARM64 Bionic
Aborted ```
Подробнее здесь: https://stackoverflow.com/questions/772 ... ssing-rust