Issue
I'm trying to install ipython notebook on my win8 laptop.
I follow the following steps to install ipython.
I installed "pip".
Then I install the pywin32.
Then I used pip to install ipython
"pip install ipython[all]"
But when I test the ipython using "iptest" The test can not proceed due to the following error.
ERROR: Failure: ImportError (No module named ipython)
Traceback (most recent call last): File "C:\Python27\lib\site-packages\nose\loader.py", line 420, in loadTestsFromName
addr.filename, addr.module)
File "C:\Python27\lib\site-packages\nose\importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "C:\Python27\lib\site-packages\nose\importer.py", line 79, in importFromDir
fh, filename, desc = find_module(part, path)
ImportError: No module named ipython
The wired thing is the ipython notebook seems working fine, but the iptest can't test properly. It appears to me the the "nose" module cannot find the path of "ipython" module. Can anyone help me with this? Thanks.
Solution
I guess you create your virtual environment with --system-site-packages
.
Try following steps:
- Exit virtual environment:
deactivate
- Switch to superuser:
su root
- Install jupyter outside the virtual environment:
sudo pip3 install jupyter
Then enter your virtual environment and try again.
Answered By - huangbiubiu
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.