i have been trying to create an conda environment but i keep getting error saying resolve package not found however all the packages are already install.Even when i try to install any of the packages seperately it says package already installed.here is the error what i get
conda env create -f tfdl_env.yml
Solving environment: failed
ResolvePackageNotFound:
win_unicode_console==0.5=py35_0
tk==8.5.18=vc14_0
qt==5.6.2=vc14_6
vs2015_runtime==14.0.25420=0
libpng==1.6.30=vc14_1
openssl==1.0.2l=vc14_0
wincertstore==0.2=py35_0
jpeg==9b=vc14_0
six==1.10.0=py35_1
zlib==1.2.11=vc14_0
icu==57.1=vc14_0
I have encountered a similar problem, what I did to solve the problem was I removed all of those libraries which causing errors, by editing the .yml file. Why I did this? because some of packages are actually just support packages to others, which in my case the version of those packages didn't available any longer or didn't fit, but don't worry, once you update the .yml and re-run the command again, which in your case is "conda env create -f tfdl_env.yml", those failed package will be installed accordingly, triggered by the main packages that requiring those packages and find the most suited package.
Hope it helps.
Delete the mentioned packages by editing the .yml file and run the command for environment creation. It works fine. Hope this helps.
Related
I keep getting this error:
ModuleNotFoundError: No module named 'requestium'
Even though when I do pip3 list, requestium is in there. What are some possible reasons? What can I do to fix this. I'm thinking that its most likely something to do with my files but I can't seem to nail it down.
The line of code where I get the error is,
from requestium import Session
Did you activate your virtual environment? because I can install and use it.
Maybe, you might miss one of the following steps:
Activate your virtual environment: workon vision
Here my virtual environment name is vision
Install your package: pip3 install requestium
Finally use requestium to import Session
If you have done all the steps and still have an error, I suggest create a new environment and apply the three steps. Good luck
I have this repository with me ; https://github.com/layog/Accurate-Binary-Convolution-Network . As requirements.txt says, it requires tensorflow==1.4.1. So I am using miniconda (in Ubuntu18.04) and for the love of God, I can't get it to run (errors out at the below line)
from tensorflow.examples.tutorial.* import input_data
Gives me an ImportError saying it can't find tensorflow.examples. I have diagnosed the problem that a few modules are missing after I installed tensorflow (Have tried all of the below ways)
pip install tensorflow==1.4.1
conda install -c conda-forge tensorflow==1.4.1
#And various wheel packages avaliable on the internet for 1.4.1
pip install tensorflow-1.4.0rc1-cp36-cp36m-manylinux1_x86_64.whl
Question is, if I want all the modules which are present in the git repo source as my installed copy, do I have to COMPLETELY build tensorflow from source ? If yes, can you mention the flag I should use? Are there any wheel packages available that have all modules present in them ?
A link would save me tonnes of effort!
NOTE: Even if I manually import the examples directory, it says tensorflow.contrib is missing, and if I local import that too, another ImportError pops up. There has to be an easier way I am sure of it
Just for reference for others stuck in the same situation:-
Use latest tensorflow build and bezel 0.27.1 for installing it. Even though the requirements state that we need an older version - use newer one instead. Not worth the hassle and will get the job done.
Also to answer the above question about building only specific directories is possible. Each module consists of BUILD file which is fed to bezel.
See the names category of the file to build specific to that folder. For reference the command I used to generate the wheel package for examples.tutorial.mnist :
bazel build --config=opt --config=cuda --incompatible_load_argument_is_label=false //tensorflow/examples/tutorials/mnist:all_files
Here all_files is the name found in the examples/tutorials/mnist/BUILD file.
I found this script (tutorial) on GitHub (https://github.com/amyoshino/Dash_Tutorial_Series/blob/master/ex4.py) and I am trying to run in my local machine.
Unfortunately I am having and Error
I would really appreciate if anyone can help me to run this script.
Perhaps this is something easy but I am new in coding.
Thank you!
You probably just need to pip install the dash-core-components library!
Take a look at the Dash Installation documentation. It currently recommends running these commands:
pip install dash==0.38.0 # The core dash backend
pip install dash-html-components==0.13.5 # HTML components
pip install dash-core-components==0.43.1 # Supercharged components
pip install dash-table==3.5.0 # Interactive DataTable component (new!)
pip install dash-daq==0.1.0 # DAQ components (newly open-sourced!)
For more info on using pip to install Python packages, see: Installing Packages.
If you have run those commands, and Flask still throws that error, you may be having a path/environment issue, and should provide more info in your question about your Python setup.
Also, just to give you a sense of how to interpret this error message:
It's often easiest to start at the bottom and work your way up.
Here, the bottommost message is a FileNotFound error.
The program is looking for the file in your Python37/lib/site-packages folder. That tells you it's looking for a Python package. That is the directory to which Python packages get installed when you use a tool like pip.
I have recently installed this plugin which is working great ...
Now my issue is that when I repopulate the ES 'index' with new data, I want to delete the existing 'index' first in ES. This is to delete old data in ES.
The above mentioned plugin contains this file scrapyelasticsearch.py where I think I can add this code
es.delete(index='my-index', doc_type='test')
to delete the index before repopulating.
The plugin will automatically recreate the index before inserting data.
Question: I couldn't find where this file (scrapyelasticsearch.py) is located ? I am using Ubuntu 16.04, with ES and Scrapy also installed.
I tried this command to find this package
dpkg -l scrapyelasticsearch
but received this error
dpkg-query: no packages found matching scrapyelasticsearch
If anyone has used this plugin/package, please help me find this file scrapyelasticsearch.py
Any help is very appreciated. Thanks
The file is located in your site-packages directory of your python installation. So if you're running on system's python (not a virtual environment) it would be something like:
/usr/lib/python3.5/site-packages/
However, you should not modify site-package data!
What you should do is clone or fork the project on github, make your changes to it, and install this fork on your system.
git clone https://github.com/knockrentals/scrapy-elasticsearch.git
cd scrapy-elasticsearch
your_editing_program 'scrapyelasticsearch/scrapyelasticsearch.py'
# make changes
pip uninstall scrapy-elasticsearch # uninstall old original package
pip install . # install your package, you can also add -e flag for real time modifications
I am trying to install wck. But I ran into the following error when running setup.py :
fatal error : tk.h : no such file or directory
But I already have all the -dev packages installed! I went on and installed tk-dev, tk8.5-dev and tk8.4-dev and the problem persists. I did a 'locate tk.h' and there was no tk.h anywhere in my system. Wherever this problem was reported, people were trying to get tcl.h too. So I did a sudo apt-get install tcl-dev and did a 'locate tcl.h'. Nothing! Where did all the header files go?
Your problem is, that WCKs setup.py and setuplib.py don't have a clue where to look with the layout on your system, so you will have to fix those to get it working.
I assume your using some variant of Debian Linux there, so maybe have a look at their guidelines for packaging Tcl/Tk.
Basically they recommend adding configure switches like:
--with-tcl=/usr/lib/tclX.Y
--with-tk=/usr/lib/tkX.Y
--with-tclincludes=/usr/include/tclX.Y
http://pkg-tcltk.alioth.debian.org/tcltk-policy.html/ap-debian_oddities.html
http://pkg-tcltk.alioth.debian.org/tcltk-policy.html/ch-tcltk.html
With that info, you might be able to get it to work by editing setup.py and simply adding a version of find_tk() that works for your system.