I am trying to install stratum module in python 3.5 on Ubuntu. But I get the error
ImportError: No module named 'server'
My installation command is
python3 setup.py install
Any suggestion how to solve this?
I am trying to install stratum module in python 3.5 on Ubuntu. But I get the error
ImportError: No module named 'server'
My installation command is
python3 setup.py install
Any suggestion how to solve this?
Okay, another method:
sudo apt update
sudo apt upgrade
apt-get install python-pip
pip -V
pip install <package_name>
From the documentation, it says Python 2.7 or 2.6
is needed. As you are trying to use python 3.5.
I would suggest going like this (0.2.15 is the latest version), most probably it will work, or at least it will be easier to debug.
sudo apt-get update
sudo apt-get upgrade
pip3 download stratum==0.2.15
tar xvzf ./stratum-0.2.15.tar.gz
cd stratum-0.2.15
pip3 install .
The best way to install some package is to use pip install. So at first u need to PATH python and scripts:
Append
C:\Users(your
username)\AppData\Local\Programs\Python\Python36-32
C:\Users(your
username)\AppData\Local\Programs\Python\Python36-32\Scripts
to the Path variable.
Restart Command Prompt.
After that u can use pip install stratum
in cmd