Unable to Install Packages in PyCharm Community Edition
I am trying to install TensorFlow in PyCharm. I have Python 3.6. I tried this in the PyCharm Console------------------ pip.main(['install', 'tensorflow']) Collecting tensorflow Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
I also tried installing from a virtual environment, but it said: Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow
How can I fix this issue? Thanks so much!! :D
See also questions close to this topic
Error when non-English characters present
When the user inserts non-English characters, the script stops with an error.
# -*- coding: utf-8 -*- from Tkinter import * wnd = Tk() name_A = Entry(wnd) name_A.pack() def AAAA1(): A1 = name_A.get() with open("file_name.TXT", 'w') as f: f.write(A1) Button(wnd, text="GO", command=AAAA1).pack() wnd.mainloop()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 0: ordinal not in range(128
When I run this code, it gives None instead of the 'Python' getting appended to the List. Why is that so?
When I run this code, it gives None instead of the 'Python' getting appended to the List. Why is that so?
input_tuple = ('Monty Python', 'British', 1969) input_list = list(input_tuple) print(input_list) input_list_1 = input_list.append('Python') print(input_list_1)
Python (higher order function) - Don't understand how to approach this, any advice or hints please
def combine(f, op ,n): result = f(0) for i in range(n): result = op(result, f(i)) return result def smiley_sum(t): def f(x): ... def op(x, y): ... n = ... # Do not modify this return statement return combine(f, op, n)
The question asks to define the two functions in terms of combine. However, I do not exactly understand what that means and how to implement that. From how I see it, the 'combine' function is the main function and we have to write the other two functions from scratch (without utilising combine in them).
what is the fastest way to feed video frames to tensorflow model?
there is a pre-trained
Tensorflowmodel for image recognition. I want to use it as a feature extractor.
In order to increase performance Video Frames are read with
cv2.read()and buffered in
frameBuffer. In the next step I choose a batch of images and feed them to graph after a set of pre-processes(in order to prepare images for feeding):
for x in range ( lowerIndex,upperIndex): frame = frameBuffer[x] img_data = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) encode_param = [int(cv2.IMWRITE_JPEG_QUALITY), 100] result, img_str = cv2.imencode('.jpg', frame, encode_param) img_str = img_str.tostring(order='C') batchFrameBuffer.append(img_str)
pre-process step takes a significant time and during this time the utilization of GPU is 0. Is there a way to keep GPU working all the time? (for example using different threads (one for read and preprocess and another for running session)
Tensorflow 1.5 issue on ipython notebook
I recently upgrade tensorflow using the command " py -3.6 -m pip install --upgrade tensorflow "
and after that why i run python on command prompt windows 10 tensorflow works like charm but when i open ipython notebook for python3 and try to import tensorflow i get this error
NameError Traceback (most recent call last) in () ----> 1 import tensorflow as tf C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_init_.py in () 39 # pylint: disable=undefined-variable 40 del python ---> 41 del core 42 # pylint: enable=undefined-variable NameError: name 'core' is not defined
Cant get images to show in Jupyter Notebook, TensorDebugger (TDB)
Currently following https://github.com/ericjang/tdb/blob/master/notebooks/mnist_demo.ipynb TensorDebugger(TDB) and finally got TBD Connected: success after executing Run All from the Cell menu in Jupyter Notebook, but unfortunately nothing has loaded beyond that.
I have noticed some errors (AttributeError: 'module' object has no attribute 'histogram_summary') appeared after running all as follows:
Any idea how I can troubleshoot this error?
flask web app project sudden behavior change - connecting to debugger twice
I am working on a web app using Flask in PyCharm.
I have not had any problem so far, but all of its sudden something changes and it is making the work really difficult.
First thing this the app does is connecting to a network folder and creates a map of all the files and directories in the folder (a network shared folder in a windows computer ). It used to take about five seconds to do that, and it started running the app without any problem.
However, I do not know what happened (I think I did not do anything), but all of its sudden the file mapping takes about three minutes and debugger tries to connect again and start the app again. It does the files mapping again also. After doing this the app start running. But, if I change a line in my code, it does this cycle again.
Since the file mapping became really slow, I checked the computer that hosting the files, but it did not show any sign of problem.
I am really confused because this started happening all of its sudden.
Below is the message I am getting in the console window if PyCharm.
pydev debugger: process 3412 is connecting Connected to pydev debugger (build 163.15188.4) * Restarting with stat pydev debugger: process 2248 is connecting * Debugger is active! * Debugger PIN: 288-833-753 * Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
Did anybody had similar experience? Could you please share your insight of this problem?
Setup Django with Pycharm
I am currently following the tutorial in the link below to set up a Django file.
I can install Django for a certain project via adding a package in the project interpreter. In the picture in the link it seems that it is installed for every project. Also, I do not have a "more settings"-option in the new project options. What am I doing wrong? I am using Pycharm 2017.3.3.
- PyCharm - Proper highlighting for mixed Flask and Vue.js code?
Scrapy install in virtualenv - cant resolve issue. looks related to lxml?
Good day! I'm pretty new to python/scrapy as in never tried it. I've been able to work through a lot of the issues I've come across but I'm stuck trying to resolve "Running setup.py bdist_wheel for lxml ... error" I can't seem to get past it. I've tried to "pip3 install lxml" but that fails. I could past the whole terminal text but that is almost 500 lines. What would be helpful to provide enough info to resolve.
Any help would be great! I'm anxious to try out scrapy! Nick
Maybe I should enter my response here! :) I have been able to install other packages. I've started over a couple of times so I'm working in a "fresh" virtualenv
pip calls python from deleted virtualenv
I think I may have deleted a folder that contained a still-active virtualenv. Whenever I try to call pip, I get the error
/Users/me/bin/pip: /Users/me/VENV/bin/python2.7: bad interpreter: No such file or directory. The directory
VENVno longer exists, but once contained a virtualenv.
I'm using MacOS 10.13, and have homebrew-installed versions of both Python and pip:
$ which pip2 /usr/local/bin/pip2 $ which pip3 /usr/local/bin/pip3
which work fine. The problematic pip that's linked to the
pipcommand lives at
/Users/me/bin/pip. Since I'm unable to use it, I tried to just uninstall the problematic pip with
pip uninstall pipas explained here, but got the same error as before.
So I have two questions:
Does this seem like something that would happen if I deleted an active virtualenv?
How can I uninstall
/Users/me/bin/pipfrom my system?
problems creating virtualenv when installing two different versions of Python
I have installed Python 2.7, pip and virtualenv on my computer and I have created a virtual environment with this same version of Python. I installed some packages in this new virtual environment too.
Later, I decided to install Python 3.6 on the same computer to create a virtual environment that works with version 3.6. I downloaded Python 3.6 and installed it by selecting Add Python 3.6 to PATH and Install for All users and I selected the option to automatically install pip. As I had previously installed virtualenv, I have not had to reinstall it. Should I?
The problem is that, once installed, when creating a virtual environment I've got an error.
As I already had a version of Python installed I have specified that I want to use Python 3.6 in the virtual environment that I am creating: virtualenv env2_py36 -p c: \ Python36 \ python.exe
The error already says that this usually happens when you install more than one version of Python on the same computer and warns that it is necessary to check the option Install for All Users to work (as I did) and also recommends placing the appropiate PythonXX.dll file in the Scripts folder of the virtual environment. However, I see that there is already a python36.dll file there.
Could anybody tell me what should I do to fix this problem?
On the other hand, I had previously created another virtual environment using Python 2.7. I use PyScripter to run my scripts but I don't know how to connect PyScripter to my virtual environment. It's still connected to the Python2.7's system installation.
Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/software/R...', installing dplyr on LSF GNU/Linux server
I tried installing 'dplyr' on a Linux server using the following code in a script:
install.packages('dplyr', dependencies = TRUE, lib = 'output/software/r/package/installation/', repos = 'http://cran.rstudio.com')
but after running it with 'Rscript code.R' I got a long message followed by:
** package ‘dplyr’ successfully unpacked and MD5 sums checked ** libs ... g++ -I/software/R-3.4.0/lib/R/include -DNDEBUG -I../inst/include -DCOMPILING_DPLYR -DBOOST_NO_INT64_T -DBOOST_NO_INTEGRAL_INT64_T -DBOOST_NO_LONG_LONG -DRCPP_USING_UTF8_ERROR_STRING -I"/lustre/.../project/output/software/r/package/installation/Rcpp/include" -I"/software/R-3.4.0/lib/R/library/BH/include" -I"/software/R-3.4.0/lib/R/library/bindrcpp/include" -I"/software/R-3.4.0/lib/R/library/plogr/include" -I/usr/local/include -fpic -g -O2 -c hybrid_offset.cpp -o hybrid_offset.o ... g++ -shared -L/usr/local/lib -o dplyr.so RcppExports.o address.o api.o arrange.o between.o bind.o combine_variables.o distinct.o encoding.o filter.o group_by.o group_indices.o hybrid.o hybrid_count.o hybrid_debug.o hybrid_in.o hybrid_minmax.o hybrid_nth.o hybrid_offset.o hybrid_simple.o hybrid_window.o init.o join.o join_exports.o mutate.o rlang-export.o select.o set.o slice.o summarise.o test.o utils.o window.o installing to /lustre/.../project/output/software/r/package/installation/dplyr/libs ** R ** data *** moving datasets to lazyload DB ** inst ** preparing package for lazy loading Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/software/R-3.4.0/lib/R/library/bindrcpp/libs/bindrcpp.so': /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /software/R-3.4.0/lib/R/library/bindrcpp/libs/bindrcpp.so) ERROR: lazy loading failed for package ‘dplyr’
I tried installing 'dplyr' without the dependencies and it gives the same messages.
How cleanup un-useful installed packages , after compile PHP7
i have a tiny VPS with 192MB total RAM
CentOS 6.5 minimal i386
first i install some apps required to compile PHP
then i compile it successfuly
but now some packages installed that never use >
required packages that installed :
bzip2-devel curl-devel libjpeg-devel libpng-devel freetype-devel libc-client-devel libmcrypt-devel libxml2-devel gcc glibc glibc-common openssl-devel
dependency packages that installed :
libicu-devel-4.2.1-14.el6.i686 gd-devel-2.0.35-11.el6.i686 libicu-4.2.1-14.el6.i686 libXt-1.1.4-6.1.el6.i686 libXpm-devel-3.5.10-2.el6.i686 libXext-1.3.3-1.el6.i686 libSM-1.2.1-2.el6.i686 gd-2.0.35-11.el6.i686 libXpm-3.5.10-2.el6.i686 libX11-devel-1.6.4-3.el6.i686 libX11-1.6.4-3.el6.i686 libX11-common-1.6.4-3.el6.noarch fontconfig-devel-2.8.0-5.el6.i686 libxcb-devel-1.12-4.el6.i686 libxcb-1.12-4.el6.i686 libXau-devel-1.0.6-4.el6.i686 libXau-1.0.6-4.el6.i686 libICE-1.0.6-1.el6.i686 xorg-x11-proto-devel-7.7-14.el6.noarch fontconfig-2.8.0-5.el6.i686 libselinux-utils-2.0.94-7.el6.i686 e2fsprogs-1.41.12-23.el6.i686 libss-1.41.12-23.el6.i686 krb5-devel-1.10.3-65.el6.i686 e2fsprogs-libs-1.41.12-23.el6.i686 openssl-1.0.1e-57.el6.i686 libkadm5-1.10.3-65.el6.i686 libselinux-devel-2.0.94-7.el6.i686 krb5-libs-1.10.3-65.el6.i686 libsepol-devel-2.0.41-4.el6.i686 libselinux-2.0.94-7.el6.i686 libcom_err-devel-1.41.12-23.el6.i686 libcom_err-1.41.12-23.el6.i686 keyutils-libs-devel-1.4-5.el6.i686 keyutils-libs-1.4-5.el6.i686 libxml2-2.7.6-21.el6_8.1.i686 cloog-ppl-0.15.7-1.2.el6.i686 ppl-0.10.2-11.el6.i686 libgomp-4.4.7-18.el6.i686 cpp-4.4.7-18.el6.i686 mpfr-2.4.1-6.el6.i686 glibc-headers-2.12-1.209.el6_9.2.i686 glibc-devel-2.12-1.209.el6_9.2.i686 tzdata-2018c-1.el6.noarch libgcc-4.4.7-18.el6.i686 kernel-headers-2.6.32-696.20.1.el6.i686 libcurl-devel-7.19.7-53.el6_9.i686 libc-client-2007e-11.el6.i686 freetype-2.3.11-17.el6.i686 automake-1.11.1-4.el6.noarch autoconf-2.63-5.1.el6.noarch m4-1.4.13-5.el6.i686 libpng-1.2.49-2.el6_7.i686 perl-5.10.1-144.el6.i686 libmcrypt-2.5.8-9.el6.i686 libjpeg-turbo-1.2.1-3.el6_5.i686 perl-version-0.77-144.el6.i686 perl-libs-5.10.1-144.el6.i686 perl-Pod-Simple-3.13-144.el6.i686 perl-Pod-Escapes-1.04-144.el6.i686 perl-Module-Pluggable-3.90-144.el6.i686 libidn-devel-1.18-2.el6.i686 zlib-devel-1.2.3-29.el6.i686 libcurl-7.19.7-53.el6_9.i686
i know this packages dont use resources,CPU,RAM; but i want do a cleanup!!
package-cleanup --leavescommand to detect orphans
but its only detect 5 packages
another solution ?!!
`del` on a package has some kind of memory
delseems to have some memory which puzzles me. See the following:
In : import math In : math.cos(0) Out: 1.0 In : del math.cos In : math.cos(0) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-4-9cdcc157d079> in <module>() ----> 1 math.cos(0) AttributeError: module 'math' has no attribute 'cos'
Fine. Let's see what happens if we delete the whole math package:
In : del math In : math.cos(0) --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-6-9cdcc157d079> in <module>() ----> 1 math.cos(0) NameError: name 'math' is not defined
So now math itself is gone, as expected.
Now let's import math again:
In : import math In : math.cos(0) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-8-9cdcc157d079> in <module>() ----> 1 math.cos(0) AttributeError: module 'math' has no attribute 'cos'
So somehow interactive python remembers that math.cos was deleted specifically even after we deleted the whole math package and imported it again.
Where does python keeps this knowledge? Can we access it? Can we change it?