![]() |
I cannot install this library. Can someone show me how? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: I cannot install this library. Can someone show me how? (/thread-32864.html) |
I cannot install this library. Can someone show me how? - Led_Zeppelin - Mar-11-2021 How in the world does one import this file. I have tried many things and nothing so far has worked. I even Googled the subject and again nothing. So how does one install: official.nlp It is used in a program as shown: from official.nlp import optimization # to create AdamW optimizerI just need to know how to install it, so I can import it into my program. Thnaks fo any help. Respectfully, LZ RE: I cannot install this library. Can someone show me how? - ndc85430 - Mar-11-2021 It would help to know what you tried and what the problems were. What does the library's website say to do? Is it not available in PyPI? RE: I cannot install this library. Can someone show me how? - buran - Mar-11-2021 I think you need to install https://pypi.org/project/tf-models-official/ Depending on what you use, you may need to install more dependencies. look at https://github.com/tensorflow/models/tree/master/official RE: I cannot install this library. Can someone show me how? - Led_Zeppelin - Mar-11-2021 I tried : pip install official.nlp conda insat;; official.nlp I tried pip install official conda install official I tried pyforest, the general library installer. None of them worked. I have not tried lazy_imports(). I will this afternoon. Respectfully, LZ RE: I cannot install this library. Can someone show me how? - buran - Mar-11-2021 Did you open the link PyPI that I shared? pip install tf-models-officialeventually because of the nlp, you may need to install pip install tensorflow-text RE: I cannot install this library. Can someone show me how? - Led_Zeppelin - Mar-11-2021 Thank you. I will give it a try. It just seems a awkward way to install a library. R, LZ RE: I cannot install this library. Can someone show me how? - ndc85430 - Mar-12-2021 Why awkward? It's the standard way to do it. RE: I cannot install this library. Can someone show me how? - buran - Mar-12-2021 (Mar-11-2021, 09:58 PM)Led_Zeppelin Wrote: It just seems a awkward way to install a library.What is that you find so awkward? Also, it's obvious you didn't write the code yourself, so I expect there were instructions what and how to install. RE: I cannot install this library. Can someone show me how? - snippsat - Mar-12-2021 The fast way. Go to Colab,New Notebook. Run. !pip install -q tf-models-official==2.4.0Example Notebook. With Anaconda/conda/pip you should create a new environment,look at this Thread. This need to install a lot of packages look at requirements.txt around 30.Then is better to make new virtual environment(see link),so it don't crash with what you have tried to install before. |