0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

メモ/未整理:【termux】でpip installを実行してbecause the ssl module is not availableエラーがでたときにやったこと

Last updated at Posted at 2020-08-08


pkg install apt
pkg install openssl
apt install python --reinstall

pip install virtualenv 
/data/data/com.termux/files/usr/bin/python3 -m pip install --upgrade pip

$pkg install git

virtualenv bitbank
source ./bitbank/bin/activate

pkg install wget
wget https://files.pythonhosted.org/packages/76/2c/8c9e06c890db9fac6dcb522e8d0777650f8b38e37fd4959e54f8d983c440/ccxt-1.32.75-py2.py3-none-any.whl
pip install ./ccxt-1.32.75-py2.py3-none-any.whl #error
pip install requests
pip install chardet
pip install urllib3
pip install idna
pip install certifi
pip install cryptography #error
pkg install rust
pip install cryptography #ok!
pip install ccxt #ok!


------------------------------------------------------
apt install clang
------------------------------------------------------
  このサイトによると下記の全部いりますが、私は上記の1つ実行すればOKでした。
  https://note.com/pinkyspeed/n/nb1c446837869
   apt install clang
   apt install python-dev
   apt install libxml2-dev
   apt install libffi-dev
   apt install libcrypt-dev
------------------------------------------------------

# この命令の前に上記のコマンドを実行しないとビルドエラー
私はapt install clangだけを実行すればOKでした。
また下記のコマンドはsource ./bitbank/bin/activateのコマンドの後で実行しないとエラーになる
------------------------------------------------------
pip-3.9 install ccxt
/data/data/com.termux/files/home/bitbank/bin/python -m pip install --upgrade pip
------------------------------------------------------

#### !!!重要!!!####
termux上で下記コマンドを入力することでスリープ抑制する。
termux-wake-lock(終わったら、携帯の電源の設定のところに自動管理を外す、旧バージョンのAndroidシステムは設定⇒詳細設定⇒バッテリーマネージャー⇒保護されたアプリにてTermuxを保護対象ONにする)

#Vimをインストール
pkg install vim-python
## How to set up SSH Server in Termux(Android)
https://www.youtube.com/watch?v=TNZW0LvEUKM
### Android側コマンド
pkg install nmap
pkg install openssh
sshd
nmap localhost
whoami
passwd u0_279
ifconfig

# PC側
ssh u0_a279@192.168.1.3 -p 8022

//内部ストレージにつなげる
Termuxの~/は/data/data/com.termux/files/homeなので、内部ストレージにつなぐ方法。以下のコマンドを実行。
termux-setup-storage

※cd ./storage/downloads で/Downloadフォルダにアクセスできる


# FTP
pkg install busybox termux-services



初心者メモ:PythonのList/Tuple/Set/Dictのチートシート
https://qiita.com/ishida330/items/9692836aa860b2d0c36c


Windows10で画面録画をする5つの方法
https://jp.easeus.com/screen-recording-tips/windows-10-screen-recorder.html#:~:text=%E3%82%B9%E3%83%86%E3%83%83%E3%83%971%EF%BC%9AWindows%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3%E3%81%BE%E3%81%9F%E3%81%AF,%E3%81%A6%E3%80%81%E9%8C%B2%E7%94%BB%E3%82%92%E5%AE%8C%E4%BA%86%E3%81%99%E3%82%8B%E3%80%82

java を利用するために、ubuntu-in-termuxをインストールする

Update termux: apt-get update && apt-get upgrade -y
Install wget: apt-get install wget -y
Install proot: apt-get install proot -y
Install git: apt-get install git -y
Go to HOME folder: cd ~
Download script: git clone https://github.com/MFDGaming/ubuntu-in-termux.git
Go to script folder: cd ubuntu-in-termux
Give execution permission: chmod +x ubuntu.sh
Run the script: ./ubuntu.sh -y
Now just start ubuntu: ./startubuntu.sh

apt-get update && apt-get upgrade -y
apt-get install openjdk-11-jdk

ローカルにダウンロードしたTomcatのファイルをtermuxへアップロードする
https://www.jianshu.com/p/491ad9a405e8
C:\Users\aaa\Downloads>scp -P 8022 .\apache-tomcat-8.5.63.tar.gz u0_a279@192.168.1.16:/data/data/com.termux/files/home

http://bbs.liuxingw.com/t/24546/2.html
在termux根目录下的ubuntu-fs文件下的root文件是你Ubuntu的根目录,如果你下载Tomcat记得要放到ubuntu-fs/root目录下解压并且在Ubuntu环境下运行。
https://blog.csdn.net/stlinax/article/details/105876846
【Nginx的安装】
pkg install nginx
查版本:nginx -V
测试检查 Nginx 的配置文件是否正常:nginx -t
启动 Nginx:
nginx
/data/data/com.termux/files/usr/etc/nginx/nginx.conf

https://anttutu.github.io/post/2020-09-28-android_termux/
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?