Fastai v0.7 install issues thread

@stas appreciate you addressing the issues around new vs old fastai 0.7 and 1.0+

Started on your #1 instructions:

and got the following error message for pyproj (which has popped up before on the threads):

Collecting pyproj (from geopandas>=0.3.0->plotnine->-r C:\Users\Stephen\Document
s\GitHub\fastai\condaenv.d2ikl714.requirements.txt (line 9))
  Using cached https://files.pythonhosted.org/packages/29/72/5c1888c4948a0c7b736
d10e0f0f69966e7c0874a660222ed0a2c2c6daa9f/pyproj-1.9.5.1.tar.gz
    Complete output from command python setup.py egg_info:
    nad2bin.c
    nad2bin.c(2): fatal error C1083: Cannot open include file: 'stdio.h': No suc
h file or directory
    using bundled proj4..
    Traceback (most recent call last):
      File "C:\Users\Stephen\Anaconda3\envs\fastai\lib\distutils\_msvccompiler.p
y", line 423, in compile
        self.spawn(args)
      File "C:\Users\Stephen\Anaconda3\envs\fastai\lib\distutils\_msvccompiler.p
y", line 542, in spawn
        return super().spawn(cmd)
      File "C:\Users\Stephen\Anaconda3\envs\fastai\lib\distutils\ccompiler.py",
line 909, in spawn
        spawn(cmd, dry_run=self.dry_run)
      File "C:\Users\Stephen\Anaconda3\envs\fastai\lib\distutils\spawn.py", line
 38, in spawn
        _spawn_nt(cmd, search_path, dry_run=dry_run)
      File "C:\Users\Stephen\Anaconda3\envs\fastai\lib\distutils\spawn.py", line
 81, in _spawn_nt
        "command %r failed with exit status %d" % (cmd, rc))
    distutils.errors.DistutilsExecError: command 'C:\\Program Files (x86)\\Micro
soft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86
\\x64\\cl.exe' failed with exit status 2

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Stephen\AppData\Local\Temp\pip-install-4yurslw6\pyproj\setu
p.py", line 72, in <module>
        objects = cc.compile(['nad2bin.c', 'src/pj_malloc.c'])
      File "C:\Users\Stephen\Anaconda3\envs\fastai\lib\distutils\_msvccompiler.p
y", line 425, in compile
        raise CompileError(msg)
    distutils.errors.CompileError: command 'C:\\Program Files (x86)\\Microsoft V
isual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\
\cl.exe' failed with exit status 2

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Stephen\
AppData\Local\Temp\pip-install-4yurslw6\pyproj\

CondaValueError: pip returned an error 

If you then manually install pyproj using conda install -n fastai pyproj and open up a jupyter notebook, it results into a dead kernel. After checking the kernelspec list (which is created as part of setting up the fastai env in /Anaconda3/envs/fastai/) and inspecting the kernel.json, it appears to be pointing to a directory that doesn’t exist (/bin/):

1 Like