site-packages

How to move Python virtualenv to different system (computer) and use packages present in Site-packages

拈花ヽ惹草 提交于 2021-01-05 09:12:44
问题 I am making a python 3 application (flask based) and for that I created a virtualenv in my development system, installed all packages via pip and my app worked fine. But when I moved that virtualenv to a different system (python3 installed) and ran my application with the absolute path of my virtualenv python (c:/......./myenv/Scripts/python.exe main.py) then it threw the errors that packages are not installed, I activated the virtualenv and used pip freeze and there were no packages were

Error while launching Jupyter Notebook - @attr.s(hash=True) AttributeError: module 'attr' has no attribute 's'

ぐ巨炮叔叔 提交于 2020-04-16 05:48:50
问题 I am not able to launch or open Jupyter Notebook. I have uninstalled and installed it multiple times, still get the same error which I have pasted below! It's giving some 'Attribute Error'. Traceback (most recent call last): File "C:\Users\Ramya\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in from notebook.notebookapp import main File "C:\Users\Ramya\anaconda3\lib\site-packages\notebook\notebookapp.py", line 80, in from .services.contents.manager import ContentsManager File "C:

How to extend sys.path using files?

不想你离开。 提交于 2020-01-04 15:46:20
问题 I'm using a python environment (iOS Pythonista) that does not have setuptools so setup.py within a python packages will not run. There is a site-packages dir that is added to sys.path. I'm looking for a clever way to gunzip packages from pypi into site-packages without having to move the actual package with the __init__.py into site-packages. I'd like to keep the folder with all the documentation in site-packages. Is there a way to use __init__.py or another python reserved file to extend the

import tensorflow as tf gives errors even after installing without errors

时间秒杀一切 提交于 2019-12-11 20:39:34
问题 I've been trying to solve this issue for long time. After many attempts in my existing python=3.5 env (in Anaconda), I deleted it and created a new env again just to properly install tensorflow with gpu support. To do that I did conda create -n FALL python=3.5 and then pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.11.0-cp35-cp35m-win_amd64.whl as suggested in tensorflow site, because I am on Windows 10 and have Anaconda. There