Giter Site home page Giter Site logo

Comments (4)

ilblackdragon avatar ilblackdragon commented on August 10, 2024

It's weird that you are importing stuff from build/bdist.macosx-10.11-x86_64/egg/ .
Which folder are you running your python from? If you are in clonned folder you called setup.py install - try changing directory. Also try checking how your $PYTHONPATH looks like - it shouldn't have that directory in the list.

from skflow.

boscotsang avatar boscotsang commented on August 10, 2024

I ran the python in any other folders the same error came. The following is the detail information about the $PYTHONPATH and the traceback when I ran the python in home directory.

TsangBosco:~ tsangbosco$ python
Python 2.7.11 (default, Dec 23 2015, 12:23:20) 
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/tsangbosco/.pyenv/versions/2.7.11/lib/python2.7/site-packages/numpy/__init__.py", line 180, in <module>
    from . import add_newdocs
  File "/Users/tsangbosco/.pyenv/versions/2.7.11/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/Users/tsangbosco/.pyenv/versions/2.7.11/lib/python2.7/site-packages/numpy/lib/__init__.py", line 8, in <module>
    from .type_check import *
  File "/Users/tsangbosco/.pyenv/versions/2.7.11/lib/python2.7/site-packages/numpy/lib/type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "/Users/tsangbosco/.pyenv/versions/2.7.11/lib/python2.7/site-packages/numpy/core/__init__.py", line 58, in <module>
    from numpy.testing import Tester
  File "/Users/tsangbosco/.pyenv/versions/2.7.11/lib/python2.7/site-packages/numpy/testing/__init__.py", line 14, in <module>
    from .utils import *
  File "/Users/tsangbosco/.pyenv/versions/2.7.11/lib/python2.7/site-packages/numpy/testing/utils.py", line 15, in <module>
    from tempfile import mkdtemp
  File "/Users/tsangbosco/.pyenv/versions/2.7.11/lib/python2.7/tempfile.py", line 32, in <module>
    import io as _io
  File "build/bdist.macosx-10.11-x86_64/egg/io/__init__.py", line 16, in <module>
ImportError: No module named skflow.io.pandas_io
>>> exit()
TsangBosco:~ tsangbosco$ echo $PYTHONPATH
/Users/tsangbosco/.pyenv/version/2.7.11

from skflow.

ilblackdragon avatar ilblackdragon commented on August 10, 2024

What about sys.path? I'm just not observing the same issue myself and this line File "build/bdist.macosx-10.11-x86_64/egg/io/__init__.py", line 16, in <module> seems like an issue where the skflow got installed.

I just did next commands:

mkdir temp
virtualenv env
source env/bin/activate
git clone https://github.com/google/skflow.git
pip install numpy
pip install scipy
pip install sklearn
pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py2-none-any.whl
cd skflow
python setup.py install

and then tried import numpy in python and it works correctly.

from skflow.

terrytangyuan avatar terrytangyuan commented on August 10, 2024

Closing this due to inactive status. Feel free to reopen it if you encounter the problem again.

from skflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.