Python ImportError: No module named fast - python-2.7

I try to run python script with from fast import FAST and I get an error:
ImportError: No module named fast
I don't know what is this module for and where to get it. Does somebody know?

In case of unknown modules, Python Package Index homepage is main source of information. Looks like you're missing package for software testing
Assuming you have pip installer (maybe How to install pip on windows will be useful, if you're on windows) all you have to do is:
pip install fast
which downloads package with it's dependencies and installs it into your local python package library.

Related

No module System in Pycharm (Python)

I am trying to import System module in Pycharm (which should be inbuilt) but the error I am getting is no module names System in PyCharm. I did try to pip install it separately, but still it doesn't work.

How to install difflib module in python 2.7 windows 10

Currently, I am facing difficulty installing difflib module in python 2.7 version in windows 10 system.
I want it to perform some text analytics analysis
tried using
apt-get install npm
npm install difflib
and
pip.exe install difflib
Solution for me was to save the difflib.py in the location where your .py file resides and then import it in your file.
install using pip should be a great idea, You can refer to the module related details here:
https://docs.python.org/2.7/library/difflib.html
If you face an issue installing it using pip, then the next way is to get the difflib.py from any working machine and keep it in the project directory itself, so that just importing the module itself will work.
This is the codebase reference from svn of python itself:
https://svn.python.org/projects/python/trunk/Lib/difflib.py

ipyparallel installation: "ImportError: No module named paths"

After installing ipyparallel (OSX) via either Canopy package manager or pip, still can't import.
Note: A forum suggests easy_install path file inconsistencies. But I can't detect any line pointing to python site-packages folder in easy-install.pth.
/Users/tahahassan/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/ipykernel/connect.py in <module>()
11
12 from IPython.core.profiledir import ProfileDir
---> 13 from IPython.paths import get_ipython_dir
..
ImportError: No module named paths
Any ideas will be appreciated.
In Canopy on OSX I have no difficulty in importing ipyparallel. Most likely is a confusion of ipython/jupyter-related package names and versions due to the change in package architecture with the change to jupyter. If you don't mind starting with a clean slate, I suggest uninstalling, resetting, and installing the current Canopy 1.6.2 ( see this article).
If you don't want to do this because you've got lots of 3rd party packages installed, then I suggest doing a force install of jupyter and all dependencies, then of ipyparallel:
enpkg --forceall ipython
enpkg --forceall ipyparallel

How can I install h5py with Portable Python v2.7?

I am doing some Python 2.7 development work on multiple computers, on some of which I do not have rights to install software. Thus, I am using Portable Python. One of the packages I need to use is h5py; however, since Portable Python installs without modifying the registry, the h5py installer doesn't see it as a valid Python installation. Also, simply extracting the h5py source to a custom F:\py\include folder and adding F:\py\include to the PYTHONPATH environment variable doesn't work, as import h5py results in an ImportError: Cannot import name _errors exception.
How do I install h5py with Portable Python 2.7?
Install Python 2.7 onto a computer for which you have sufficient administrative rights.
Install the appropriate version of h5py into this Python installation.
Find the h5py subfolder within the Python install (typically .\Lib\site-packages\h5py) and copy it to the F:\py\include folder mentioned (make sure to add F:\py\include to PYTHONPATH). See my answer here for more details.
Uninstall the 'official' version of Python, if desired.

Is it possible to install a django package without pip?

I am trying to install django-dash to run one of the dashboard examples and see what it's like.
I am on Windows running Python 2.7 and Django 1.6.5. I know the usual approach is to download pip then install the package using pip. However, I am on a work computer with no administrative rights so I can't access my Internet Option Settings to find my proxy URL to follow the instructions below:
Proxy problems
If you work in an office, you might be behind a HTTP proxy. If so, set the environment variables http_proxy and https_proxy. Most Python applications (and other free software) respect these. Example syntax:
http://proxy_url:port
http://username:password#proxy_url:port
I had the same issue when trying to install Django but was able to get it to work by moving the django directory under Python27/Lib/site-packages. Is there something similar I can do with django-dash?
I also tried downloading the sources and running python setup.py install. I received the following error:
File "setup.py", line 3, in <module> from setuptools import setup, find_packages ImportError: No module named setuptools
Link to django-dash: http://django-dash.readthedocs.org/en/latest/
Yes, you can probably get the sources from The Python Package Index
Once you have them, uncompress the files and install them manually (this will depend on you OS).
On Linux systems:
python setup.py build
python setup.py install
Here's the full reference
EDIT : Note that when manually installing those packages, you must also install any missing dependencies, eg. setuptools in your case