I wanted to desperately install fastbook on my own machine with NVIDIA 1080Ti card.
I tried different things among them is one response provided by ChatGPT, but this is also not perfect. Here is the response -
from setuptools import setup, find_packages
setup(
name='fastbook',
version='0.1',
packages=find_packages(),
install_requires=[
'fastai>=2.2.7',
'pandas',
'matplotlib',
'requests',
'packaging',
'ipywidgets',
'nbdev>=2.2.7',
'sentencepiece',
'scikit-learn>=0.23',
'torchvision>=0.8.2',
'fastcore>=1.3.20',
'pip>=20.2.2'
],
entry_points={
'console_scripts': [
'fastbook = fastbook.cli:main'
]
}
)
$ python setup.py sdist
$ cd dist
$ pip install fastbook-0.1.tar.gz
::::::
Building wheel for fastbook (setup.py) ... done
Created wheel for fastbook: filename=fastbook-0.1-py3-none-any.whl size=15795 sha256=acd4a39885bc5f3b09122946cee49860dc9907940d31a6a881251749babf37ac
Stored in directory: /home/onkar/.cache/pip/wheels/b5/a4/60/886dc2eb7a0c115b6507d3391c63a1e28fb06fea0635838485
Successfully built fastbook
Installing collected packages: fastbook
Successfully installed fastbook-0.1
$ python -c "import fastbook; print(fastbook-0.1.__version__)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'fastbook'
(fastai23) onkar@HINDUKUSH:~/FASTAI23/fastbook$ pip freeze | grep "fastbook"
fastbook @ file:///home/onkar/FASTAI23/fastbook/dist/fastbook-0.1.tar.gz
(fastai23) onkar@HINDUKUSH:~/FASTAI23/fastbook$
I think I will have to ultimately resort to human experience and expertise which is still invaluable !
Please help…