Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'UnencryptedCookieSessionFactoryConfig' from 'pyramid.session' (unknown location) #23

Closed
yhangchen opened this issue Mar 23, 2021 · 7 comments

Comments

@yhangchen
Copy link

Hi, by executing this

python3 train.py --name cifar10-100_500 --dataset cifar10 --model_type ViT-B_16 --pretrained_dir checkpoint/ViT-B_16.npz

I encounter the error:

Traceback (most recent call last):
  File "train.py", line 17, in <module>
    from apex import amp
  File "/home/tiger/.local/lib/python3.7/site-packages/apaex/__init__.py", line 13, in <module>
    from pyramid.session import UnencryptedCookieSessionFactoryConfig
ImportError: cannot import name 'UnencryptedCookieSessionFactoryConfig' from 'pyramid.session' (unknown location)
@zhoufengfan
Copy link

I think you have install the wrong apex.
I have installed apex through the source code. You can refer to the official website and try again.

@airsimonhan
Copy link

git clone https://github.com/NVIDIA/apex
cd apex
python setup.py install

@jhq1234
Copy link

jhq1234 commented Nov 1, 2023

git clone https://github.com/NVIDIA/apex cd apex python setup.py install

it works for me!
Thanks!

@luomi16
Copy link

luomi16 commented Jan 5, 2024

!git clone https://github.com/NVIDIA/apex
%cd apex
!pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation ./

@QQQ796
Copy link

QQQ796 commented May 20, 2024

git clone https://github.com/NVIDIA/apex
cd apex
python setup.py install
these results fatal: destination path 'apex' already exists and is not an empty directory.
python3: can't open file '/content/drive/MyDrive/UGDRE-main/setup.py': [Errno 2] No such file or director.
How to do next??

@WangJianQ-0118
Copy link

git clone https://github.com/NVIDIA/apex cd apex python setup.py install

it works for me! Thanks!

华为昇腾910b也是安装英伟达的吗

@new-TonyWang
Copy link

new-TonyWang commented Jun 26, 2024

git clone https://github.com/NVIDIA/apex cd apex python setup.py install

it works for me! Thanks!

华为昇腾910b也是安装英伟达的吗
用这个 https://gitee.com/ascend/apex.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants