Comments (6)
When I'm try install the package with pip, this happens:
user@computer:~/Programs/hide.py$ pip install PIL
/home/z33dd/.local/lib/python3.5/site-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
Collecting PIL
Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
from hide.py.
You're using Python 3.5, this script will only run in Python 2.7+.
from hide.py.
I think that find the problem!
I try use with Python 2.7, happens the same:
user@computer:~/Programs/hide.py$ python hide.py
Traceback (most recent call last):
File "hide.py", line 11, in <module>
from PIL import Image
ImportError: No module named PIL
user@computer:~/Programs/hide.py$ python --version
Python 2.7.12
It seems the problem is here:
user@computer:~/Programs/hide.py$ pip install PIL --user
/home/z33dd/.local/lib/python3.5/site-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
Collecting PIL
Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
Pip search for a PIL module to "elementary OS 0.4.1 Loki" rather than "Ubuntu 14",
user@computer:~/Programs/hide.py$ cat /etc/*-release
DISTRIB_ID="elementary"
DISTRIB_RELEASE=0.4.1
DISTRIB_CODENAME=loki
DISTRIB_DESCRIPTION="elementary OS 0.4.1 Loki"
NAME="elementary OS"
VERSION="0.4.1 Loki"
ID="elementary"
ID_LIKE=ubuntu
PRETTY_NAME="elementary OS 0.4.1 Loki"
VERSION_ID="0.4.1"
HOME_URL="http://elementary.io/"
SUPPORT_URL="http://elementary.io/support/"
BUG_REPORT_URL="https://github.com/elementary/"
VERSION_CODENAME=loki
UBUNTU_CODENAME=loki
cat: /etc/upstream-release: Is a directory
The big question is "how to download and install the module of another distro with pip?"
from hide.py.
Yes, because pip is aliased to your machine to pip3, use the version for python 2. Better yet, create a virtual environment.
$ cd hide.py
$ virtualenv -p python2.7 venv
$ source venv/bin/activate
$ pip install -r requirements.txt
Replace python2.7
with the python2 binary on your system.
from hide.py.
Thanks! It's working now!
Ps: Hey guy, has a error here:
$ source venv/bin/acitvate
from hide.py.
Right, I corrected it for anyone reading this in the future.
from hide.py.
Related Issues (10)
- Support for more carrier file formats
- -
- Decoding gives error when the input file uses `./` HOT 2
- python 3 HOT 1
- Support for cryptographic data obfuscation
- Data decorrelation
- Support for mutliple input and output files
- Statistical analysis of some example output files
- Hiding files without significant changes to the image's histogram
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hide.py.