You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python3.5/dist-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
So instead of just python setup.py install, I do:
sudo python setup.py install
However, I got this error:
RuntimeError: PyTorch does not currently provide packages for PyPI (see status at pytorch/pytorch#566).
Please follow the instructions at http://pytorch.org/ to install with miniconda instead.
I tried
sudo python3 setup.py install
Which would make sense. Torchvision requires PyTorch, and PyTorch was installed in python3, as per your guide.
But it seems that I need to have Pillow installed first.
I'll try to go through installing torchvision using python3.5. But it's a bit worrying because in your requirements, you mentioned that the environment is Python 2.7, but so far, the installations seem to be in Python 3.5. Even the OpenCV Install guide for the Raspberry Pi installs it on Python 3.5.
I'll keep this updated as I work on installing torchvision.
The text was updated successfully, but these errors were encountered:
Collecting opencv-python (from -r requirements.txt (line 3))
Could not find a version that satisfies the requirement opencv-python (from -r requirements.txt (line 3)) (from versions: )
No matching distribution found for opencv-python (from -r requirements.txt (line 3))
I get the same error even when trying pip install opencv-python
Now I'm not sure how to proceed from this point.
This repo looks very promising but installing the dependencies seems to be a tad bit complicated. The pre-requisites PyTorch and TorchVision are installed in Python 3.5, but your code seems to work on Python 2.7?
After installing PyTorch using your guide, I proceeded to install torchvision. I followed the repo you linked and I used the following commands:
And since you suggested we install from source, I followed the repo's guide and ran:
The installation stops, because I don't have permissions in a certain folder that the
setup.py
is trying to write to. This is the log:So instead of just
python setup.py install
, I do:However, I got this error:
I tried
Which would make sense. Torchvision requires PyTorch, and PyTorch was installed in python3, as per your guide.
But it seems that I need to have Pillow installed first.
I'll try to go through installing torchvision using python3.5. But it's a bit worrying because in your requirements, you mentioned that the environment is Python 2.7, but so far, the installations seem to be in Python 3.5. Even the OpenCV Install guide for the Raspberry Pi installs it on Python 3.5.
I'll keep this updated as I work on installing torchvision.
The text was updated successfully, but these errors were encountered: