-
Notifications
You must be signed in to change notification settings - Fork 2.5k
problem of installation #51
Comments
@kingbackyang |
still stuck in it |
@kingbackyang @yghcats |
|
@huangr76 My conda is OK. |
|
Hi, This problem usually happens because you are not using a nightly version of PyTorch 1.0, but an older version like PyTorch 0.4 Can you print the output of import torch
print(torch.__version__) and paste it here? |
Try uninstalling PyTorch and installing it again. It should fix your issue I think |
@kingbackyang Can you tell me about your installation steps? |
recommend that you should check you installed pytorch version first. And according to the official step of the install.md, there is no problem at all. My bug is about my root environment path and virtual environment path. |
Hi everyone, I'm facing a similar issue where this command When I go with Am right in thinking that this is mainly because I'm on Windows 10? It seems like the conda pytoruch-nightly 1.0 is still not supported for Windows. CUDA 9, latest gcc for Windows. |
|
Yes, PyTorch-nightly is not available for Windows yet. |
thanks both, may I ask from -based on previous releases- how long would it take for the Windows release? I can meanwhile entertain myself on a MBP but my main dev is still on Windows. |
same problem |
Environment
os: ubuntu 18.04
cuda 9.0
gcc 7.3
bug
the final instruction of install.md
pythonsetup.py build develop
running build
running build_py
running build_ext
building 'maskrcnn_benchmark._C' extension
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/hzf/mask_rcnn/maskrcnn-benchmark-master/maskrcnn_benchmark/csrc -I/home/hzf/.local/lib/python3.6/site-packages/torch/lib/include -I/home/hzf/.local/lib/python3.6/site-packages/torch/lib/include/TH -I/home/hzf/.local/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/home/hzf/anaconda3/envs/maskrcnn_pytorch/include/python3.6m -c /home/hzf/mask_rcnn/maskrcnn-benchmark-master/maskrcnn_benchmark/csrc/vision.cpp -o build/temp.linux-x86_64-3.6/home/hzf/mask_rcnn/maskrcnn-benchmark-master/maskrcnn_benchmark/csrc/vision.o -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/hzf/mask_rcnn/maskrcnn-benchmark-master/maskrcnn_benchmark/csrc/nms.h:3:0,
from /home/hzf/mask_rcnn/maskrcnn-benchmark-master/maskrcnn_benchmark/csrc/vision.cpp:2:
/home/hzf/mask_rcnn/maskrcnn-benchmark-master/maskrcnn_benchmark/csrc/cpu/vision.h:3:10: fatal error: torch/extension.h: no such file or directory
#include <torch/extension.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
guess
guess that you didn't push c++ extensions onto github
The text was updated successfully, but these errors were encountered: