PyTorch is installed but not imported
I am trying to build PyTorch.
Reference site：https://github.com/hughperkins/pytorch

but, When we performed unit test, The following error occur.

ImportError while importing test module '/home/usr2/pytorch/test/testByteTensor.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test/testByteTensor.py:2: in &lt;module&gt;
    import PyTorch
E   ImportError: No module named 'PyTorch'
__________________ ERROR collecting test/testDoubleTensor.py ___________________


I understand that PyTorch is not imported.
but It is confirmed that pytorch is installed.
Is there a way to solve this problem?

environment

ubuntu 16.04
python3.5
cuda9.2


In fact, you should do import torch instead of import PyTorch
Here is what's work for me: (I installed it using conda)

&gt;&gt;&gt; import torch

&gt;&gt;&gt; torch.version
&gt;&gt;&gt; &lt;module 'torch.version' from '/home/koke_cacao/miniconda3/envs/ml/lib/python3.6/site-packages/torch/version.py'&gt;

&gt;&gt;&gt; print(torch.__version__)
&gt;&gt;&gt; 0.4.1.post2

&gt;&gt;&gt; a = torch.FloatTensor(2,3)
&gt;&gt;&gt; tensor([[-7.4368e-13,  3.0911e-41, -9.6122e-13],
    [ 3.0911e-41, -7.3734e-13,  3.0911e-41]])


Edit: The version works with no problem at all for me. But if you insist to perform the unit test, maybe other people can solve your problem.
